Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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!

share|improve this question
    
Why not use stunnel? Either I didn't understand what you're trying to do, or it looks like the right tool for the job. –  Gilles Sep 25 '11 at 15:53
add comment

1 Answer

up vote 1 down vote accepted

Have a look at ncat (which is part of nmap).

ncat -l 80 -c "ncat (ip-address) (port) --ssl"

For more information see: Using ncat to provide SSL-support to non-ssl capable software

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.