Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client_x509 example media #4

Open
bjnhur opened this issue Oct 15, 2021 · 0 comments
Open

client_x509 example media #4

bjnhur opened this issue Oct 15, 2021 · 0 comments

Comments

@bjnhur
Copy link
Owner

bjnhur commented Oct 15, 2021

Prepare

Generate device certificate

[MUST] Please follow up tutorial-x509-self-sign

SDK setting

  • Select example in main.c

./pico-azure-iot-sdk-c/application/main.c
image

  • Get the key value from files (device1.crt, device1.key) as below:
    image

  • Edit sample_certs.c with generated certificates as upper.

./pico-azure-iot-sdk-c/application/sample_certs.c
image

  • connection string for this example is "HostName=twarelabhub.azure-devices.net;DeviceId=W5100S_EVB_PICO_X509;x509=true"

Azure IoT Explorer (preview) setting

image
image
image

Build

image

Azure portal

image
image
image
image

Run

serial terminal

image
image

Azure IoT Explorer

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant