I am currently trying use the esp8266 to connect and communicate with a private MQTT server. Existing communication with said server is done through a manual TLS-PSK handshake on another wifi module. I am hoping to replace this module with the esp8266, however I have run into difficulty porting the esp8266 over due to the existing handshake solution. I would prefer to do away with the messy custom handshake entirely and am hoping the existing api ( espconn_secure_connect()??? ) can do just that for me.
I have read bits and pieces online about pre-shared keys being supported, however I haven't found any helpful examples. The ESP8266 SSL User Manual (https://www.scribd.com/doc/305609114/5a ... -en-v1-4-1) has a guide for using the esp8266 as an SSL client, however it seems generate a CA certificate with a public shared key, and I haven't seen any way of implementing a pre-shared key with their solution. There has also been some extensive work on a libssl replacement (https://github.com/igrr/axtls-8266) however once again I haven't seen a way to connect through TLS using a pre-shared key.
Does this module support TLS-PSK? If so, are there any good examples out there? And if not, does anyone with more experience in this area have suggestions about the direction I should take?
Thanks a bunch!