Ma_Net
Ma_Net

Reputation: 3

Unable to Connect a virtual device to Cloud IoT Core using the MQTT bridge using the command given in tutorial, "serverCertFile" missing

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

Answers (1)

Gabe Weiss
Gabe Weiss

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

Related Questions