Subject: | ssl_opts verify_hostname |
Date: | Thu, 28 Aug 2014 09:09:19 -0400 |
To: | bug-XMLRPC-Lite [...] rt.cpan.org |
From: | Geoff Goehle <goehle [...] gmail.com> |
I'm setting up a service through XMLRPC::Lite and I needed to turn off
hostname checking for ssl because I'm using a self signed cert. Since
XMLRPC::Lite is a wrapper around SOAP::Lite I should be able to follow
the documentation for that module and pass options via the proxy
command. So something like
my $result=XMLRPC::Lite->proxy($url,ssl_opts=>{verify_hostname=>0})
However this doesn't work. I was able to get the option set correctly
but I had to do
my $transporter=XMLRPC::Lite->new;
my $result=$transporter->proxy($url);
$transporter->transport->ssl_opts(verify_hostname=>0);
It seems like the first option should work, but I don't know enough
about the details of the implementation to know if its a bug or not, or
if its a problem with SOAP::Lite or not.
Cheers.
Geoff.