http://www.perlmonks.org?node_id=1060341
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?