【发布时间】:2019-11-24 02:50:23
【问题描述】:
我正在尝试对基于 X509 证书的组注册进行原型设计,并且不仅针对一台设备(默认情况下 dice_device_enrollment 会提供),而是针对多台设备,而且根据我所学到的,我需要实现自己的自定义 HSM图书馆。虽然后者的大部分看起来很简单,但我在设置 deviceID 时遇到了困难。文件内容如下:
custom_hsm_get_common_name
char* custom_hsm_get_common_name(HSM_CLIENT_HANDLE handle);
Retrieves the common name from the x509 certificate.
Passed to the Device Provisioning Service as a registration Id.
我的困难是 - 如果“注册 ID”是 deviceID,并且 X509 证书只有一个通用名称,我应该如何在一个组中配置多个设备?或者,还有其他设置 deviceID 的方法吗?目前通过分析hsm_client_riot.c的代码我看不到。
【问题讨论】:
-
你能做到吗?
-
@Vineet 从那以后我转向了新版本的 Azure IOT SDK,它更易于使用
标签: x509 azure-iot-hub azure-iot-sdk azure-iot-dps