XIFF connection and login to Openfire with Google Wave

I am trying to get my head around the requirements for connecting to the Fedone distribution of the Google Wave protocol, but currently I am having issues with not getting a handshake of any sort when using a TLS connection with a self-signed certificate. Without the handshake no login is available either through anonymous or a registered user. Though when not using a tunnel an anonymous login is successful and all attempts result in a handshake.

Would someone point me in the right direction of where to look into getting a full logged in state, or show some up-to-date example to do such a thing?

Currently using the HEAD revision of trunk: http://svn.igniterealtime.org/svn/repos/xiff/trunk/src/org/igniterealtime.
I can post my code at some point if required.

Sorry for the bump.

Can anyone post an example on how to connect to Openfire server using TLS connection, that is with the HEAD revision of XIFF?

(There are a lot of outdated threads going around but non match the available classes in the XIFF3.x repository)