A couple of years ago I started working with this code base, and forked this into a new repos.
It supports Mutual TLS as well as insecure TLS.
It supports various other TLS requirements based on the version of AMT.
https://github.com/jerryabramson/amtterm_ssl