ESP8266 Developer Zone The Official ESP8266 Forum 2015-07-15T21:32:45+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=602 2015-07-15T21:32:45+08:00 2015-07-15T21:32:45+08:00 https://bbs.espressif.com:443/viewtopic.php?t=602&p=2697#p2697 <![CDATA[Re: SSL server certificate verification]]> . Thanks a lot for the patch!

Statistics: Posted by Guest — Wed Jul 15, 2015 9:32 pm


]]>
2015-07-14T10:17:33+08:00 2015-07-14T10:17:33+08:00 https://bbs.espressif.com:443/viewtopic.php?t=602&p=2657#p2657 <![CDATA[Re: SSL server certificate verification]]>
Please call espconn_secure_set_size to enlarge your SSL buffer.

Here is a sample code as the attachment.
user_main.zip

Statistics: Posted by ESP_Faye — Tue Jul 14, 2015 10:17 am


]]>
2015-07-12T22:18:58+08:00 2015-07-12T22:18:58+08:00 https://bbs.espressif.com:443/viewtopic.php?t=602&p=2631#p2631 <![CDATA[Re: SSL server certificate verification]]>

got ip !!!
client handshake start.
client handshake failed
reconnect callback, error code -28 !!!


Did you folks succeed with https://my.flair.zone/api/help (54.193.48.141)? Are you using different sample code from viewtopic.php?f=21&t=389?

Statistics: Posted by Guest — Sun Jul 12, 2015 10:18 pm


]]>
2015-07-11T22:35:15+08:00 2015-07-11T22:35:15+08:00 https://bbs.espressif.com:443/viewtopic.php?t=602&p=2625#p2625 <![CDATA[Re: SSL server certificate verification]]> Statistics: Posted by Guest — Sat Jul 11, 2015 10:35 pm


]]>
2015-07-09T18:17:10+08:00 2015-07-09T18:17:10+08:00 https://bbs.espressif.com:443/viewtopic.php?t=602&p=2600#p2600 <![CDATA[Re: SSL server certificate verification]]>
Sorry for the inconvenience.

Please have a try with the latest SDK_v1.2.0 with SSL patch here http://bbs.espressif.com/viewtopic.php?f=5&t=708&p=2599#p2599

Thanks for your interest in Espressif Systems and ESP8266 !

Statistics: Posted by ESP_Faye — Thu Jul 09, 2015 6:17 pm


]]>
2015-06-20T12:05:00+08:00 2015-06-20T12:05:00+08:00 https://bbs.espressif.com:443/viewtopic.php?t=602&p=2322#p2322 <![CDATA[Re: SSL server certificate verification]]>

"4. Error -28 when connecting to https://my.flair.zone/api/help"

Can you share why is there an SSL handshake error? What were the client/server unable to converge on?

Statistics: Posted by Guest — Sat Jun 20, 2015 12:05 pm


]]>
2015-06-17T18:55:51+08:00 2015-06-17T18:55:51+08:00 https://bbs.espressif.com:443/viewtopic.php?t=602&p=2288#p2288 <![CDATA[Re: SSL server certificate verification]]>
I've upgraded to SDK version 1.1.2 and using the sample code at viewtopic.php?f=21&t=389 with DNS disabled, here are my findings:

1. HTTP 200 when connecting to https://iot.espressif.cn/ (115.29.202.58)
2. HTTP 405 when connecting to https://www.baidu.com/ (180.149.132.47)
3. Error -61 when connecting to https://www.espressif.com/ (192.185.229.242)
4. Error -28 when connecting to https://my.flair.zone/api/help

Poking around at the SSL certs, (1), (2) and (3) are using SHA-1 and (4) is using SHA-256. Is there really no plan to support SHA-2?

PS: I don't know if CA verification fixes this problem. My understanding is that CA verification just authenticates the server the client is talking to. If the client trusts that the server is who he really is (I'm not saying this is ideal), then it should be able to skip CA verification. HTTPS experts please correct me if I'm wrong.

Statistics: Posted by Guest — Wed Jun 17, 2015 6:55 pm


]]>
2015-06-17T10:09:53+08:00 2015-06-17T10:09:53+08:00 https://bbs.espressif.com:443/viewtopic.php?t=602&p=2272#p2272 <![CDATA[Re: SSL server certificate verification]]>
The latest SDK_v1.1.2 added CA verify function http://bbs.espressif.com/viewtopic.php?f=5&t=591

Document about SSL in \esp_iot_sdk_v1.1.2\document\SSL

Could it help ?

Statistics: Posted by ESP_Faye — Wed Jun 17, 2015 10:09 am


]]>
2015-06-16T22:27:41+08:00 2015-06-16T22:27:41+08:00 https://bbs.espressif.com:443/viewtopic.php?t=602&p=2267#p2267 <![CDATA[Re: SSL server certificate verification]]>
Some details: http://www.esp8266.com/viewtopic.php?f=6&t=3343#p19188

If the staff from espressif see this, you are welcome to take a look and reply

Statistics: Posted by Harold L. — Tue Jun 16, 2015 10:27 pm


]]>
2015-06-15T17:57:48+08:00 2015-06-15T17:57:48+08:00 https://bbs.espressif.com:443/viewtopic.php?t=602&p=2235#p2235 <![CDATA[SSL server certificate verification]]>
i want to use ESP to talk to an HTTPS server, and i know about espconn_secure_connect and such.
what i do not see in the SDK, however, is a way to pass CA certificates that should be trusted.
and since having SSL/TLS without actually verifying the server is like having none at all, i'm wondering - what am i missing?
i see that ESP SDK uses axTLS as the TLS library, which needs to be compiled with CONFIG_SSL_CERT_VERIFICATION to enable cert verification.
is this option enabled when SDK is built? if so, how can i call add_cert_auth with the relevant context?

thanks in advance!

Statistics: Posted by rojer — Mon Jun 15, 2015 5:57 pm


]]>