Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: IO::Socket::SSL and SSL_verify_mode

by Khen1950fx (Canon)
on Mar 22, 2012 at 05:13 UTC ( #960925=note: print w/ replies, xml ) Need Help??


in reply to IO::Socket::SSL and SSL_verify_mode

I'm assuming that you want no verification done, so using SSL_verify_mode => 0x00 can be as simple as using the SSL_CTX_set_verify method. I used the example in the ex dir.

#!/usr/bin/perl use strict; use warnings; use LWP::Simple; use IO::Socket::SSL 'debug0'; $|=1; IO::Socket::SSL::set_ctx_defaults( SSL_verifycn_scheme => 'www', SSL_verify_mode => 0, ); print get( 'https://pause.perl.org' );
First, you want to make sure that you don't use debugging because that'll call in ciphers from Net::SSLeay and call Net::SSL, which you don't want to use. Then set IO::Socket::SSL::set_ctx_defaults.


Comment on Re: IO::Socket::SSL and SSL_verify_mode
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://960925]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (15)
As of 2014-09-17 15:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (88 votes), past polls