bloxHub

www.infoblox.com/community
3 posts / 0 new
Bloxtools and Certificates

Hi All,

I'm running a bloxtools development environment on Ubuntu (12.04) but as of LWP::Agent version 6, it defaults to checking certificates.
To disable this you can set $ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0;

But where should I put this when running bloxtools?

Or is there a better way to disable certificate checking for a development environment.

Harry

+1
0
-1
Tags
Bloxtools environment
Re: Bloxtools and Certificates

You should be able to put that directly in the script when you initialize the connection. Take a look at the LWP::Agent docs:

http://search.cpan.org/~gaas/libwww-perl-6.04/lib/LWP/UserAgent.pm

 

  $ua = LWP::UserAgent->new(ssl_opts => { verify_hostname => 0 });
 
should do it. 
 

 

+1
0
-1
Re: Bloxtools and Certificates

Hi,

Thanks for your answer.

The LWP::UserAgent is called from Infobox::Session and Infoblox::Agent. Because I want to use this as a development system, I want to be able to support different API versions.

For now I have modified LWP::UserAgent itself (UserAgent.pm), but this is not ideal.

Harry

+1
0
-1