BasicDiscovery.py unable to publish messages

0

Seeing below error in GGConnManager.log -

For the device -publisher, I used AmazonRootCA1.pem for rootCA. not sure why the connection error says unknow CA

[ERROR]-MQTT message decoding error: unable to decode received MQTT message. {"errorString": "remote error: tls: unknown certificate authority"}

Any help is appreciated

asked 2 years ago218 views
1 Answer
0

Hi. It seems you are using GGv1. Please be aware that GGv1 is now in maintenance mode and GGv2 is recommended for any new development. Please consider to follow this tutorial instead: https://docs.aws.amazon.com/greengrass/v2/developerguide/client-devices-tutorial.html

That said, the BasicDiscovery.py script in the Python V1 SDK should perform Greengrass discovery and retrieve the GGv1 group CA (https://github.com/aws/aws-iot-device-sdk-python/blob/master/samples/greengrass/basicDiscovery.py#L106). It should then use the group CA to connect to the GGv1 core (https://github.com/aws/aws-iot-device-sdk-python/blob/master/samples/greengrass/basicDiscovery.py#L150). But it looks like it's finding and using the wrong group CA.

profile pictureAWS
EXPERT
Greg_B
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions