Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

ssl options for RPC::XML::Client

by Anonymous Monk
on Apr 05, 2013 at 14:51 UTC ( #1027146=perlquestion: print w/replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

i am trying to create a client connection to an internal ssl site that does not have a certificate and needs to bypass the proxy.

use RPC::XML::Client; use XML::Simple; use LWP::Protocol::https; $ENV{NO_PROXY} = '10.*'; $ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0; my $client = RPC::XML::Client->new("" +, no_proxy => ['10.*',], ssl_opts => { #verify_hostname => 0, # SSL_use_cert => 0, SSL_verify_mode => VERIFY_NONE }, );

Yet i am still getting this ugly warning:

******************************************************************* Using the default of SSL_verify_mode of SSL_VERIFY_NONE for client is deprecated! Please set SSL_verify_mode to SSL_VERIFY_PEER together with SSL_ca_file|SSL_ca_path for verification. If you really don't want to verify the certificate and keep the connection open to Man-In-The-Middle attacks please set SSL_verify_mode explicitly to SSL_VERIFY_NONE in your application. ******************************************************************* at C:/strawberry/perl/site/lib/LWP/Protocol/ line 31

I am creating the Client, but i'd like to get rid of the warning. You assistance is greatly appreciated. Thanks

Replies are listed 'Best First'.
Re: ssl options for RPC::XML::Client
by Old_Gray_Bear (Bishop) on Apr 05, 2013 at 17:16 UTC
    According to your error messages the constant should be "SSL_VERIFY_NONE"

    I Go Back to Sleep, Now.


      Appologies, my code actually has

      SSL_verify_mode => 'SSL_VERIFY_NONE',

      I had been logged in when i posted originally, but after i submited i was logged out. (i have an account rodrb) and there was no way to edit my post to make the correction. Anyway, even with 'SSL_VERIFY_NONE' the ugly warning persists.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1027146]
Approved by marto
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2018-04-22 05:40 GMT
Find Nodes?
    Voting Booth?