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)
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