[英]AWS IOT Device provisioning through AWS IOT sdk javascript
I'm trying to provision devices through AWS IOT api calls, i have used the AWS CLI to get CA Certificate and i have also generated X.509 certificate.我正在尝试通过 AWS IOT api 调用来配置设备,我使用 AWS CLI 来获取 CA 证书,并且我还生成了 X.509 证书。 Can anyone please guide me on how to Create Thing and attach certificate through SDK?任何人都可以指导我如何通过 SDK 创建事物并附加证书吗?
I have successfully used the API to create devices on AWS IoT Core by following these steps.我已按照以下步骤成功使用 API 在 AWS IoT Core 上创建设备。 Using the CLI i made CA certificate using rsa key使用 CLI 我使用 rsa 密钥制作了 CA 证书
Then i created a CSR然后我创建了一个 CSR
Registered the CA Certificate注册CA证书
Then i used the the verificationCert.csr for createCertificateFromCsr and used the certificateArn from response in attachPolicy and attachThingPrincipal然后我将 verifyCert.csr 用于 createCertificateFromCsr 并在 attachPolicy 和 attachThingPrincipal 中使用来自响应的certificateArn
You cant connect a device to AWS IoT with an API if you are trying to use HTTPS.如果您尝试使用 HTTPS,则无法使用 API 将设备连接到 AWS IoT。 AWS IoT specifically requires the MQTT broker on AWS IoT Core. AWS IoT 特别需要 AWS IoT Core 上的 MQTT 代理。 Are you using this with a device like RPi?您是否将它与 RPi 之类的设备一起使用?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.