Does this help at all?

Java Tip 111: Implement HTTPS tunneling with JSSE - JavaWorld

I take it this thread is related to:
...