{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-iot-arduino/issues/19","repository_url":"https://api.github.com/repos/Azure/azure-iot-arduino","labels_url":"https://api.github.com/repos/Azure/azure-iot-arduino/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-iot-arduino/issues/19/comments","events_url":"https://api.github.com/repos/Azure/azure-iot-arduino/issues/19/events","html_url":"https://github.com/Azure/azure-iot-arduino/issues/19","id":149248775,"number":19,"title":"ESP8266 not verifying fingerprint?","user":{"login":"sandeepmistry","id":1163840,"avatar_url":"https://avatars1.githubusercontent.com/u/1163840?v=4","gravatar_id":"","url":"https://api.github.com/users/sandeepmistry","html_url":"https://github.com/sandeepmistry","followers_url":"https://api.github.com/users/sandeepmistry/followers","following_url":"https://api.github.com/users/sandeepmistry/following{/other_user}","gists_url":"https://api.github.com/users/sandeepmistry/gists{/gist_id}","starred_url":"https://api.github.com/users/sandeepmistry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandeepmistry/subscriptions","organizations_url":"https://api.github.com/users/sandeepmistry/orgs","repos_url":"https://api.github.com/users/sandeepmistry/repos","events_url":"https://api.github.com/users/sandeepmistry/events{/privacy}","received_events_url":"https://api.github.com/users/sandeepmistry/received_events","type":"User","site_admin":false},"labels":[{"id":295519100,"url":"https://api.github.com/repos/Azure/azure-iot-arduino/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":{"login":"JetstreamRoySprowl","id":10535302,"avatar_url":"https://avatars3.githubusercontent.com/u/10535302?v=4","gravatar_id":"","url":"https://api.github.com/users/JetstreamRoySprowl","html_url":"https://github.com/JetstreamRoySprowl","followers_url":"https://api.github.com/users/JetstreamRoySprowl/followers","following_url":"https://api.github.com/users/JetstreamRoySprowl/following{/other_user}","gists_url":"https://api.github.com/users/JetstreamRoySprowl/gists{/gist_id}","starred_url":"https://api.github.com/users/JetstreamRoySprowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JetstreamRoySprowl/subscriptions","organizations_url":"https://api.github.com/users/JetstreamRoySprowl/orgs","repos_url":"https://api.github.com/users/JetstreamRoySprowl/repos","events_url":"https://api.github.com/users/JetstreamRoySprowl/events{/privacy}","received_events_url":"https://api.github.com/users/JetstreamRoySprowl/received_events","type":"User","site_admin":false},"assignees":[{"login":"JetstreamRoySprowl","id":10535302,"avatar_url":"https://avatars3.githubusercontent.com/u/10535302?v=4","gravatar_id":"","url":"https://api.github.com/users/JetstreamRoySprowl","html_url":"https://github.com/JetstreamRoySprowl","followers_url":"https://api.github.com/users/JetstreamRoySprowl/followers","following_url":"https://api.github.com/users/JetstreamRoySprowl/following{/other_user}","gists_url":"https://api.github.com/users/JetstreamRoySprowl/gists{/gist_id}","starred_url":"https://api.github.com/users/JetstreamRoySprowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JetstreamRoySprowl/subscriptions","organizations_url":"https://api.github.com/users/JetstreamRoySprowl/orgs","repos_url":"https://api.github.com/users/JetstreamRoySprowl/repos","events_url":"https://api.github.com/users/JetstreamRoySprowl/events{/privacy}","received_events_url":"https://api.github.com/users/JetstreamRoySprowl/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-04-18T19:28:46Z","updated_at":"2017-12-20T21:42:57Z","closed_at":"2017-12-20T21:42:57Z","author_association":"CONTRIBUTOR","body":"Last week, while looking at the ESP8266 side, I noticed the [HTTPSRequest.ino](https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/examples/HTTPSRequest/HTTPSRequest.ino) example verifies the fingerprint using something like:\n\n``` arduino\n// Use web browser to view and copy\n// SHA1 fingerprint of the certificate\nconst char* fingerprint = \"CF 05 98 89 CA FF 8E D8 5E 5C E0 C2 E4 F7 E6 C3 C7 50 DD 5C\";\n\n// ....\n\nvoid setup() {\n  // ...\n\n  // Use WiFiClientSecure class to create TLS connection\n  WiFiClientSecure client;\n  Serial.print(\"connecting to \");\n  Serial.println(host);\n  if (!client.connect(host, httpsPort)) {\n    Serial.println(\"connection failed\");\n    return;\n  }\n\n  if (client.verify(fingerprint, host)) {\n    Serial.println(\"certificate matches\");\n  } else {\n    Serial.println(\"certificate doesn't match\");\n  }\n\n  // ....\n}\n```\n\nThis is not something I see in this library now.\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-iot-arduino/issues/comments/353190684","html_url":"https://github.com/Azure/azure-iot-arduino/issues/19#issuecomment-353190684","issue_url":"https://api.github.com/repos/Azure/azure-iot-arduino/issues/19","id":353190684,"user":{"login":"JetstreamRoySprowl","id":10535302,"avatar_url":"https://avatars3.githubusercontent.com/u/10535302?v=4","gravatar_id":"","url":"https://api.github.com/users/JetstreamRoySprowl","html_url":"https://github.com/JetstreamRoySprowl","followers_url":"https://api.github.com/users/JetstreamRoySprowl/followers","following_url":"https://api.github.com/users/JetstreamRoySprowl/following{/other_user}","gists_url":"https://api.github.com/users/JetstreamRoySprowl/gists{/gist_id}","starred_url":"https://api.github.com/users/JetstreamRoySprowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JetstreamRoySprowl/subscriptions","organizations_url":"https://api.github.com/users/JetstreamRoySprowl/orgs","repos_url":"https://api.github.com/users/JetstreamRoySprowl/repos","events_url":"https://api.github.com/users/JetstreamRoySprowl/events{/privacy}","received_events_url":"https://api.github.com/users/JetstreamRoySprowl/received_events","type":"User","site_admin":false},"created_at":"2017-12-20T21:42:57Z","updated_at":"2017-12-20T21:42:57Z","author_association":"NONE","body":"@sandeepmistry : That code does not belong to the Azure IoT team, so this isn't an issue we can fix."}}
{"actor":{"display_login":"JetstreamRoySprowl"}}