I need to do a TLS MITM where I accept a TLS connection coming in, view the plain text decrypted data and then send the traffic to another destination. This is a proof of concept with an embedded device. The connection is not HTTPS but TLS using a PSK so things like SSLSTRIP will not work.

I have been able to use ncat and my device successfully negotiates but I cant figure out how to forward it on. Any insight is appreciated.