无法使用教程中给出的命令使用 MQTT 桥将虚拟设备连接到 Cloud IoT Core,"serverCertFile" 缺失
Unable to Connect a virtual device to Cloud IoT Core using the MQTT bridge using the command given in tutorial, "serverCertFile" missing
我使用非交互式教程来学习google物联网云。
虽然 运行 在 google 云 shell 上执行以下命令,但未执行命令说 '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
添加了 --serverCertFile=../rsa_cert.pem ,但没有帮助
提前感谢支持
您丢失的证书文件(我相信)是 Google 根证书文件。你可以通过 wget 或 curl 获取它:
wget https://pki.google.com/roots.pem
然后将其传递给 --serverCertFile
标志。
我使用非交互式教程来学习google物联网云。
虽然 运行 在 google 云 shell 上执行以下命令,但未执行命令说 '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
添加了 --serverCertFile=../rsa_cert.pem ,但没有帮助
提前感谢支持
您丢失的证书文件(我相信)是 Google 根证书文件。你可以通过 wget 或 curl 获取它:
wget https://pki.google.com/roots.pem
然后将其传递给 --serverCertFile
标志。