Could not find the TLS certificate file #322
-
I am trying to run this code https://docs.aws.amazon.com/iot/latest/developerguide/http.html in ret.py with arguments as given below. python ret.py --endpoint a1ifr8g4k1agsb-ats.iot.us-east-1.amazonaws.com --cert "C://Users//DELL//Desktop//sdfsdf-certificate.pem" --key "C://Users//DELL//Desktop//sdfsdf-private.pem" --topic mytopic --message "hello" and getting below error. Can someone help? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I think you need to check your file paths and names of the files that you are using. I was able to run the sample in powershell and git bash. Also make sure to check the file extensions; I see you are using |
Beta Was this translation helpful? Give feedback.
-
I see double forward slashes in Windows paths which seems suspect. |
Beta Was this translation helpful? Give feedback.
-
Hi. It is working fine now. Thanks.
…On Sat, 22 Apr, 2023, 5:26 am Joseph Klix, ***@***.***> wrote:
I had tried a few different variations(/, \, //, relative paths) in
powershell and they all seemed to work fine, but this is another variable
that you can change
—
Reply to this email directly, view it on GitHub
<#322 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APHP635HTHLZIFKTMLJZKYLXCMNBZANCNFSM6AAAAAAXF2N6BM>
.
You are receiving this because you authored the thread.Message ID:
<aws/aws-iot-device-sdk-python/repo-discussions/322/comments/5690846@
github.com>
|
Beta Was this translation helpful? Give feedback.
I think you need to check your file paths and names of the files that you are using. I was able to run the sample in powershell and git bash. Also make sure to check the file extensions; I see you are using
.pem
but they might look like this:.pem.crt
and.pem.key