Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Crypt-SSLeay can't verify hostnames

by mendeepak (Scribe)
on Nov 21, 2013 at 09:42 UTC ( #1063700=perlquestion: print w/replies, xml ) Need Help??
mendeepak has asked for the wisdom of the Perl Monks concerning the following question:

Net::SSL from Crypt-SSLeay can\'t verify hostnames; either install IO::Socket::SSL or turn off verification by setting the PERL_LWP_SSL_VERIFY_HOSTNAME environment variable to 0
Is there a way around this problem ?
currently To work around the error "Net::SSL from Crypt-SSLeay can\'t verify hostnames" i used PERL_NET_HTTPS_SSL_SOCKET_CLASS="IO::Socket::SSL" .But this doesn't look convincing

*=*=*dEEPAk*=*=*

Replies are listed 'Best First'.
Re: Crypt-SSLeay can't verify hostnames
by Corion (Pope) on Nov 21, 2013 at 09:58 UTC

    The error message lists two alternative approaches. You didn't tell us which one you took.

    Did you install IO::Socket::SSL? What was the outcome?

    Did you set PERL_LWP_SSL_VERIFY_HOSTNAME=0? What was the outcome? Note that this disables the hostname verification.

      I installed IO::Socket::SSL and used this to verify hostnames and currently working fine for me.
      I wanted to know why Crypt-SSLeay fails to verify hostnames?.
      Thanks

      *=*=*dEEPAk*=*=*

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1063700]
Approved by hdb
help
Chatterbox?
[ambrus]: MLX: if it's a work email, then it's probably not Uncle Sam that matters, but what the account managing server at work thinks your name is. Those can differ. For example, we've had two co-workers with identical real name at one point,
[ambrus]: so one got a stupid suffix in the email account (people have email address based on their real name here usually).

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2017-01-19 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.