Looking for a TCP "Port Wrapper"

I am trying to establish a XMPP connection from a client to a server. There are no XMPP libraries available in my programming language (Smalltalk). I only need a simple subset of the XMPP protocol and I only need to mimic an existing connection that occurs from the browser (using Javascript?)

I tried to use tcpdump to record the TCP packets over the wire, but the connection uses TLS and it is all gibberish.

Can I place something on the client - on top of the tcp socket (a wrapper) - that can monitor everything to and from the socket? That way I avoid the TLS stuff and still see everything the client sends and receives. Has anyone heard of software to do this?

Fingers crossed,
Lynn Fogwell
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nociSoftware EngineerCommented:
No but you can look for ssldump ( http://www.rtfm.com/ssldump/ )
With which you can decrypt an SSL connection if you have the keys (certificates)

The reason is that data is sent over the sockets encrypted because the SSL libraries do the encryption.
Another approach might be ltrace and then look for stuff that gets pushed through SSL before it goes there.
LynnFogwellAuthor Commented:
Hi noci,
Thanks for your comment. I tried a different tack. I found that XMPP can tunnel through an HTTP connection. This is called BOSH (Bidirectional-streams Over Synchronous HTTP). Anyway, I ran my application over an unsecured HTTP port using BOSH. I was then able to see all of the embedded XMPP messages embedded in this stream!
I was able to avoid the TLS issue completely!

Thanks again for you response, I probably would have gone that way if I hadn't found this

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LynnFogwellAuthor Commented:
I added my ultimate solution as a suggestion to others to look at tunneling  options to get around this TLS problem.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.