Add sha256 support for authenticating downstream devices with self signed certificates
I set up an edge device, added a child device to it and modified the child device's connection string to point to the edge device. The device is using self signed certs. If I add the device to the hub using the sha256 thumbprint, the edge cannot authenticate the device. If I add the device using the sha1 thumbprint, it works. I followed the instructions here, which says to use sha1: https://docs.microsoft.com/en-us/azure/iot-edge/how-to-authenticate-downstream-device
But, when I use a Device Provisioning Service to add the device to the hub, it uses the sha256 thumbprint, so my device won't connect to the edge.
Since the hub supports both sha1 and sha256 thumbprints, I think the edge device should too.