Connect over SSL

Questions and discussion about The WiPy 1.0 board and CC3200 boards.
Target audience: Users with a WiPy 1.0 or CC3200 board.
fjvillegas
Posts: 2
Joined: Sat Apr 15, 2017 10:30 pm

Re: RE: Re: Connect over SSL

Post by fjvillegas » Sat Apr 15, 2017 10:51 pm

Hi Knoahlr,

I have the same problem. I did some workaround where the recommendation was to run "sock.connect" after the "ussl.wrap_socket". Unfortunately I'm seeing that the ussl library for ESP8266 doesn't have options to configure ssl_params. Besides that, socket.connect doesn't have IPPROTO_TCP as variable.

>>> import usocket
>>> dir(usocket)
['__name__', 'reset', 'callback', 'getaddrinfo', 'print_pcbs', 'socket', 'AF_INET', 'AF_INET6', 'SOCK_STREAM', 'SOCK_DGRAM', 'SOCK_RAW', 'SOL_SOCKET', 'SO_REUSEADDR']
>>>

Have you managed to run TSL on the ESP8266?

Best,


Francisco

sunrise17
Posts: 2
Joined: Sat Jan 27, 2018 10:18 pm

Re: Connect over SSL

Post by sunrise17 » Tue Apr 10, 2018 6:20 am

Hi fjvillegas,

Have you find some solution about pass through ssl_params to "sock.connect". Unfortunately, there is no ca_cert parameter inside ssl_args(line 59) following module below.

https://github.com/micropython/micropyt ... _mbedtls.c

However, in CC3200, i have seen inside the module below that its possible to configure SSL_params.
https://github.com/micropython/micropyt ... /modussl.c

May be it can be configured also for ESP8266 and ESP32 with this method as done in CC3200.

Post Reply