Getting AWS_IO_TLS_ERROR_NEGOTIATION_FAILURE error only in docker container #490
-
Following the Node: PubSub sample I've created an IoT client to provision IoT thing and then publish messages. It's working fine on my MacBook Pro, but after I built a docker image and run it in docker, I got the following error from
Connection config:
I am using macOS 14.4, Docker version 25.0.3. I tried different base images including Any advice is appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Please include trace-level logs from a failed run: https://github.com/awslabs/aws-crt-nodejs/blob/main/lib/native/io.ts#L87 Not knowing more, the most likely reason is AmazonRootCA1.pem not being in the container's trust store. |
Beta Was this translation helpful? Give feedback.
-
Hi Bret, Thank you so much for your prompt reply. I enabled trace log and attached in the end. So you are right the error was because the certificate is untrusted. I did think of this possibility yesterday, double checked and made sure the root CA cert was in the docker image, and the path passed to I just tried reading the root CA file and passing the content as string by calling
|
Beta Was this translation helpful? Give feedback.
Please include trace-level logs from a failed run:
https://github.com/awslabs/aws-crt-nodejs/blob/main/lib/native/io.ts#L87
Not knowing more, the most likely reason is AmazonRootCA1.pem not being in the container's trust store.