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

Custom HSM in azure c sdk #2659

Open
burkulesomesh43 opened this issue Dec 4, 2024 · 0 comments
Open

Custom HSM in azure c sdk #2659

burkulesomesh43 opened this issue Dec 4, 2024 · 0 comments
Labels

Comments

@burkulesomesh43
Copy link

Hi All,

I'm using azure c sdk LTS_03_2024 for development. I've used provisioning_client_sample and able to successfully register device on IoT hub with X.509 certs and group enrollment on my ubuntu system (X86).

while working on this, I observed custom_hsm_sample is tightly coupled with provisioning_client_sample. I'm running this samples now on Cyclone V FPGA - ARM ARCH 32 bit embedded device. ( all the azure c sdk libs are crosscompiled to 32 bit arm arch ). while executing I'm getting below error.

Provisioning API Version: 1.13.0 Error: Time:Tue Nov 26 12:16:24 2024 File:/usr/src/debug/azure-iot-sdk-c/1.2.10-r0/git/provisioning_client/adapters/hsm_client_x509.c Func:hsm_client_x509_get_common_name Line:159 Registration ID was not configured. Error: Time:Tue Nov 26 12:16:24 2024 File:/usr/src/debug/azure-iot-sdk-c/1.2.10-r0/git/provisioning_client/src/prov_auth_client.c Func:load_registration_id Line:142 Failed getting common name from certificate Error: Time:Tue Nov 26 12:16:24 2024 File:/usr/src/debug/azure-iot-sdk-c/1.2.10-r0/git/provisioning_client/src/prov_auth_client.c Func:prov_auth_get_registration_id Line:374 Failed loading registration key Error: Time:Tue Nov 26 12:16:24 2024 File:/usr/src/debug/azure-iot-sdk-c/1.2.10-r0/git/provisioning_client/src/prov_device_ll_client.c Func:Prov_Device_LL_Register_Device Line:944 failure: Unable to retrieve registration Id from device auth. Registering failed with error: 10

Cyclone V FPGA doesn't support any hardware security. specifically Hardware Security Module(HSM). I want to confirm that, is custom_hsm_sample uses hardware security? or its just a software component?

can we use provisioning_client_sample without using custom_hsm? if so, could you please share reference code.

Thanks in advance.

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

No branches or pull requests

1 participant