Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

IO::Socket::SSL and SSL_verify_mode

by swilting (Beadle)
on Mar 21, 2012 at 22:28 UTC ( #960879=perlquestion: print w/replies, xml ) Need Help??
swilting has asked for the wisdom of the Perl Monks concerning the following question:

I seek to understand how to position the value SSL_verify_mode => 0x00.

can you explain how to properly use this parameter in IO::Socket::SSL

Replies are listed 'Best First'.
Re: IO::Socket::SSL and SSL_verify_mode
by Khen1950fx (Canon) on Mar 22, 2012 at 05:13 UTC
    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( '' );
    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.
Re: IO::Socket::SSL and SSL_verify_mode
by bms (Monk) on Mar 21, 2012 at 22:50 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://960879]
Approved by GrandFather
and a soft breeze sighs...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2018-06-23 07:12 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (125 votes). Check out past polls.