AWS IoT private.pem.key不存在 [英] AWS IoT private.pem.key doesn't exist

查看:136
本文介绍了AWS IoT private.pem.key不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试从AWS IoT运行以下node.js示例时,出现此错误(以下

When I am trying to run the following node.js example from AWS IoT I get this error(following this tutorial):

pi@raspberrypi:~/aws-iot-device-sdk-js/examples $ node device-example.js -g

private.pem.key doesn't exist (--help for usage)

但是,按照教程的要求,我在~/certs文件夹中有private.pem.key.

However I have the private.pem.key in ~/certs folder as requested by the tutorial.

pi@raspberrypi:~/aws-iot-device-sdk-js/examples $ vi device-example.js 
pi@raspberrypi:~/aws-iot-device-sdk-js/examples $ ls ~/certs/private.pem.key 
/home/pi/certs/private.pem.key

推荐答案

device-example.js程序旨在成对运行;每个过程都通过AWS IoT平台彼此通信.您需要启动该程序的另一个副本(可以在其他主机上),以查看它们之间的通信.有关运行示例程序的更多信息,请参见此处.感谢您使用AWS IoT.

The device-example.js program is designed to be run in pairs; each process communicates with the other through the AWS IoT platform. You'll need to start another copy of the program (it can be on another host) in order to see them communicating. More information about running the example programs can be found here. Thanks for using AWS IoT.

这篇关于AWS IoT private.pem.key不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆