ESP8266 Developer Zone The Official ESP8266 Forum 2018-03-12T15:24:05+08:00 https://bbs.espressif.com:443/feed.php?f=65&t=1974 2018-03-12T15:24:05+08:00 2018-03-12T15:24:05+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1974&p=19608#p19608 <![CDATA[Re: Secure Email Using STARTTLS]]>
when i am send AUTH LOGIN the connection was closed

Statistics: Posted by zafarpatel7 — Mon Mar 12, 2018 3:24 pm


]]>
2016-10-29T03:48:58+08:00 2016-10-29T03:48:58+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1974&p=10338#p10338 <![CDATA[Re: Secure Email Using STARTTLS]]>
I am also trying to use the NON_OS SDK (rev 2.0) and have the exact same requirement. I need to support StartTLS authentication, which requires not closing the socket between creating the insecure connection and then adding a secure envelope on it and sending and receiving with SSL.

You said the RTOS version was a possibility. How do you turn an existing insecure connection into a secure one?

Also, are there plans to add this functionality to the non-RTOS SDK? I'm worried that the size and performance overhead of the RTOS SDK will be too great for my needs. What is your experience in comparing an application written using each SDK?

Thanks...Keith

Statistics: Posted by krhodes@netboxsc.com — Sat Oct 29, 2016 3:48 am


]]>
2016-04-05T11:24:34+08:00 2016-04-05T11:24:34+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1974&p=6335#p6335 <![CDATA[Re: Secure Email Using STARTTLS]]>
Could you use ESP8266_RTOS_SDK?
ESP8266_NONOS_SDK do not support your steps.

Statistics: Posted by ESP_Faye — Tue Apr 05, 2016 11:24 am


]]>
2016-04-01T19:58:57+08:00 2016-04-01T19:58:57+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1974&p=6302#p6302 <![CDATA[Secure Email Using STARTTLS]]>
We are working on secure email feature ( Non-OS SDK v1.5.2 ) for ESP8266 using STARTTLS approach.

As step 1,

To check SSL connection , We tried HTTPS client without any certificates and it works.

Now we tried below scenario

1. Do non-secure tcp connect - Works
2. Send EHLO <mail server> - Works
3. Send STARTTLS - Works
4. -----Now do TLS Negotiation without closing connection - ???
5. Send EHLO
6. ......Other smtp email commands ...

After #3, i.e we receive " S: 220 Ready to start TLS " response

How to do a TLS negotiation using Non-OS SDK without closing the non-secure connection ?

Below is the requirement , what we want to achieve using Espressif Non-OS SDK,
- start by creating a normal TCP socket and connect it to smtp.gmail.com:587
- send a "ehlo [127.0.0.1]\r\n" command
- get the answers from the server (Notice: so far everything is in clear)
- send a "STARTTLS\r\n" command
- get the answer (i.e. "220 Ready for TLS")
- at this moment, create your ssl wrapper (method, ctx, etc...) and use "SSL_set_fd" and "SSL_connect" to activate it
- send a new "ehlo [127.0.0.1]\r\n" command but using the SSL socket

From now on, use "SSL_write" and "SSL_read" with the SSL socket to send your authentication information and email.


Please let us know if you have any pointers here...

Statistics: Posted by raghunabu — Fri Apr 01, 2016 7:58 pm


]]>