{"action":"closed","issue":{"url":"https://api.github.com/repos/szdiy/duo/issues/4","repository_url":"https://api.github.com/repos/szdiy/duo","labels_url":"https://api.github.com/repos/szdiy/duo/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/szdiy/duo/issues/4/comments","events_url":"https://api.github.com/repos/szdiy/duo/issues/4/events","html_url":"https://github.com/szdiy/duo/issues/4","id":225552738,"number":4,"title":"mbedtls_ssl_read 读 szdiy 网站返回错误","user":{"login":"atommann","id":985040,"avatar_url":"https://avatars0.githubusercontent.com/u/985040?v=3","gravatar_id":"","url":"https://api.github.com/users/atommann","html_url":"https://github.com/atommann","followers_url":"https://api.github.com/users/atommann/followers","following_url":"https://api.github.com/users/atommann/following{/other_user}","gists_url":"https://api.github.com/users/atommann/gists{/gist_id}","starred_url":"https://api.github.com/users/atommann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atommann/subscriptions","organizations_url":"https://api.github.com/users/atommann/orgs","repos_url":"https://api.github.com/users/atommann/repos","events_url":"https://api.github.com/users/atommann/events{/privacy}","received_events_url":"https://api.github.com/users/atommann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-05-01T23:24:12Z","updated_at":"2017-05-03T01:30:10Z","closed_at":"2017-05-03T01:30:10Z","body":"尝试修改一个 HTTPS GET 例子和 szdiy.org 通讯。\r\n\r\n[http_get_mbedtls 例子](https://github.com/SuperHouse/esp-open-rtos/blob/master/examples/http_get_mbedtls/http_get_mbedtls.c)\r\n* 修改了 cert.c 中的证书内容 \r\n* 修改了 http_get_mbedtls.c 中的 url 为 szdiy.org\r\n\r\n和服务器通讯的记录打印如下：\r\n\r\n```\r\nStarting again!\r\ntop of loop, free heap = 24140\r\n  . Connecting to szdiy.org:443...\r\n ok\r\n  . Performing the SSL/TLS handshake...\r\n ok\r\n  . Verifying peer X.509 certificate... ok\r\n  > Write to server: 48 bytes written\r\n\r\nGET https://szdiy.org HTTP/1.1\r\nHost: szdiy.org\r\n\r\n  < Read from server:\r\nfailed\r\n  ! mbedtls_ssl_read returned -29184\r\n\r\n\r\n\r\nLast error was: -29184 - SSL - An invalid SSL record was received\r\n```\r\n读取服务器响应的代码开始于 http_get_mbedtls.c 第 262 行。\r\n错误信息是 An invalid SSL record was received\r\n但，原始的例子是没问题的。"}}
{"actor":{"display_login":"atommann"}}