Posted on 2012-07-25 07:46:09.991024-07 by jiman


I'm writing a client on top of an API that uses Crypt::SSLeay to connect to a https site. Could you please give some clarification on what this error message means, and further, what typically causes this? I looked through your perldoc and did not see it documented.

Thank you for your time and assistance, -Jiman

Posted on 2012-07-29 20:38:17.656048-07 by nanis in response to 13754

Yes, it means that you have to explicitly tell LWP::UserAgent not to verify hostnames (if you need verification, you should use IO::Socket::SSL for now).

my $ua  = LWP::UserAgent->new(
    ssl_opts => { verify_hostname => 0 },

(This article is based on a thread on the CPAN::Forum.)