I'd like to wrap an insecure connection (this one: http://culturedcode.com/things/) with a secure tunnel, a bit like http://en.wikipedia.org/wiki/Stunnel does, just using UNIX tools.
What's the best way to intercept insecure traffic, encrypt it and deliver it to the insecure socket at the other end of the communication channel?
I am used to wrapping/tunnelling VNC connections using SSH port forwarding, how would you do something to the same effect with an application such as Things for Mac/iPhone? Namely: a generic application using known ports to exchange unencrypted data?
Bonus points for step-by-step instructions ;)
Thanks!