packetstormer has asked for the wisdom of the Perl Monks concerning the following question:
Hello!
I have a script that calls an HTTPS site. The SSL cert is self signed and I would like the script to accept it regardless. I can do this when calling LWP::UserAgent->new or by using $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME}=0;. I know this isn't the best idea but it gets around the warnings.
My question is: Is there a way to invoke this option when not calling LWP::UserAgent directly? In the script, I also call Frontier::Client which in turns calls LWP::UserAgent. However, the global $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME}=0; I have set is ignored and the error appears on STDOUT.
Does anyone know how to pass this option to a method which in turns call the LWP::Agent new method?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: LWP_SSL_Verify_mode option
by daxim (Curate) on Oct 30, 2013 at 12:22 UTC | |
Re: LWP_SSL_Verify_mode option
by packetstormer (Monk) on Oct 30, 2013 at 12:43 UTC | |
by Anonymous Monk on Oct 30, 2013 at 22:07 UTC | |
Re: LWP_SSL_Verify_mode option
by Khen1950fx (Canon) on Oct 31, 2013 at 04:33 UTC | |
by Anonymous Monk on Nov 01, 2013 at 03:58 UTC | |
Re: LWP_SSL_Verify_mode option
by natxo (Scribe) on Nov 01, 2013 at 11:32 UTC |