Reputation: 3
I using ineractive tutorial to learn google IOT cloud.
While running below command on google cloud shell, command does not get executed says 'Missing required argument: "serverCertFile"'
node cloudiot_mqtt_example_nodejs.js mqttDeviceDemo --cloudRegion=us-central1 --proj ectId=nth-setup-305706 --registryId=my-registry --deviceId=my-node-device --privateKeyFile=../rsa_private.pem --numMessages=25 --algorithm=RS256 --mq ttBridgePort=443
Added --serverCertFile=../rsa_cert.pem , that does not help
Thanks For The support in advance
Upvotes: 0
Views: 304
Reputation: 3342
The cert file you're missing is (I believe) the Google root certificate file. You can get it with wget or curl:
wget https://pki.google.com/roots.pem
Then pass that to the --serverCertFile
flag.
Upvotes: 2