See SquidDev-CC/CCTweaks#107
There is no SSLSocketChannel so this makes things harder. There are some docs which are worth looking at.
Questions
- Best ways of doing this: I guess I'll have to look at the API first
- Can this be done in Lua: we have RSA, Diffie-Hellman, and AES libraries. Are they fast enough/handle large numbers? (Basic protocol summary)
- Certificate authentication?