Thanks finally the issue is fixed.
our corporate firewall blocked this host *.azure-devices.net. After, unblock it works fine.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I try to create a edge module, my linux machine edge gateway is success and device is online in IoTHub. I am using this device connection string to create a custom IoT Edge module with simulator from visualstudio, when i run the solution it always throws the SSL error.
Note : earlier it was working fine, recently getting this error due to some policy changes.
could any one help me on this.
ERROR: HTTPSConnectionPool(host='kredemo.azure-devices.net', port=443): Max retries exceeded with url: /devices/KREDemoEdge/modules/target?api-version=2020-05-31-preview (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1091)')))
[ERROR]: Failed to run 'iotedgehubdev modulecred -l -m "target"' with error: ERROR: HTTPSConnectionPool(host='kredemo.azure-devices.net', port=443): Max retries exceeded with url: /devices/KREDemoEdge/modules/target?api-version=2020-05-31-preview (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1091)')))
Thanks finally the issue is fixed.
our corporate firewall blocked this host *.azure-devices.net. After, unblock it works fine.
Glad to hear that issue is resolved!
Apart from the Firewall issue, we can review below few troubleshooting steps,
If we think SSL certificates are causing the issue, It seems like there might be some changes in the certificate policies on the dev machine, due to which the certificate verification is failing.
To resolve this issue, you can try the following steps:
verify_ssl
parameter to False
in your code.I hope this helps you to resolve the SSL certificate verification error in your IoT Edge module.