SSL Error while running $edgeHub on local docker

Roopak Ingole 51 Reputation points
2020-07-23T18:55:29.007+00:00

I am developing IoT Edge Module on my windows 10 machine (company provided machine with proxy) as host for Raspberry Pi IoT Edge. I have Docker for Windows installed on my machine. I would like to simulate my module on host docker to test. I am able to build the docker Image successfully, but when try to run $edgeHub on Docker, i am getting below error.

Login Succeeded
Network azure-iot-edge-dev is external, skipping
ERROR: HTTPSConnectionPool(host='xxxxxxxxxxxxxx.azure-devices.net', port=443): Max retries exceeded with url: /devices/iotedge2/modules/$edgeHub?api-version=2018-06-30 (Caused by SSLError(SSLError("bad handshake: Error([('SSL
routines', 'tls_process_server_certificate', 'certificate verify failed')])")))

Any help to resolve this would be appreciated.

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
529 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,107 questions
{count} votes

1 answer

Sort by: Most helpful
  1. QuantumCache 20,026 Reputation points
    2020-07-28T00:10:28.187+00:00

    Hello @Roopak Ingole , For my Raspberry Pi 3, I have followed the below documents to develop and debug my IoTEdge Modules locally. Please follow and try these documents once on your Windows 10 Dev machine and let us know if that helps to get through this issue. Please note that we have the facility of IoT Edge Simulator available to debug these modules locally on VS2019. Which is very useful!

    Use Visual Studio 2019 to develop and debug modules for Azure IoT Edge
    Use Visual Studio Code to develop and debug modules for Azure IoT Edge

    1 person found this answer helpful.