Posted on 2009-12-01 22:36:23-08 by sergei25
Little help with using client certificate ?
I'm using Net::XMPP::Client to connect to the jabber2 server that requires using client certificate. Connection attempts fail with server message :
error: SSL handshake error (error:140890C7:SSL routines:SSL3_GET_CLIENT_CERTIFICATE:peer did not re +turn a certificate)

And on the client side :
XML::Stream: TLSClientProceed: ssl_sock(IO::Socket::INET=GLOB(0x129c19a0)) XML::Stream: TLSClientProceed: SSL: We are secure XML::Stream: Process: block(0) XML::Stream: Send: (<?xml version='1.0'?<>stream:stream version='1.0' xmlns:stream='http:/ +/etherx.jabber.org/streams' xmlns='jabber:client' to='xmpp1.domain.com' from='host3' xml:lang='en' + >)

I understand that Net::XMPP::Connection uses XML::Stream that has GetSocket() method and underlying IO::Socket::SSL does have support for client certificates. How can I set IO::Socket::SSL to be used by the XMPP connection ?
thanks sergei
Direct Responses: 11865 | Write a response
Posted on 2009-12-01 23:24:04-08 by sergei25 in response to 11864
Re: Little help with using client certificate ?
To clarify my question a little bit... Net::XMPP does not have controls to configure underlying SSL connection parameters like client certificate/key. The IO:Socket:SSL is still there and I only need a way to get to it via Net::XMPP::Client. When I do data dump on Net::XMPP::Client - theres XML::Stream that should have IO::Socket reference. Is it possible to obtain it while its not being exposed by the Net:XMPP API ?
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.