Security

Reply
Highlighted

Certificate Verify Failed - PPM repo add - Windows x64

community Employee
Employee
Posts: 73
5410     0

Trying to install the API for Windows x64.  Had to use a newer version of PPM (5.14.3.1404).  Was able to run the following successfully:

ppm install Crypt-SSLeay
ppm install libwww-perl -force

Next, trying to install the repository I get this:

ppm repo add Infoblox_Grid https://XX.XX.XX.XX/api/dist/ppm
Downloading Infoblox_Grid packlist...failed 500 Can't connect to XX.XX.XX.XX:4
43 (certificate verify failed)

I am unable to find any solution as of yet.  We primarily use the API for bulk imports/exports.

Thanks for the assistance!

Re: Certificate Verify Failed

I-Team Employee
Employee
Posts: 186
5411     0

The SSL certificate isn't matching up with the name of the host, so you're getting a certificate failure. 

You need to disable certificate checking. You can do that by setting the environment variable PERL_LWP_SSL_VERIFY_HOSTNAME to 0 before running the script.

 

 

 

 

 

Re: Certificate Verify Failed

user42
Techie
Posts: 35
5411     0

Great thanks! How do I do that?  Zero experience with Perl and/or scripts.

Re: Certificate Verify Failed

I-Team Employee
Employee
Posts: 186
5411     0

Not sure exactly which flavor of windows you're working with, but this should get you close to the answer. Information on configuring PPM is here:

http://docs.activestate.com/activeperl/5.10/faq/ActivePerl-faq2.html#ppm_and_proxies

Here's a good overview of how to set environment variables on windows:

http://superuser.com/questions/79612/setting-and-getting-windows-environment-variables-from-the-comm...

 

 

Re: Certificate Verify Failed

user42
Techie
Posts: 35
5411     0

Great thanks!

We are running Windows 7.

I know how to set a Windows environment variable but this looks like I need to set a Perl/PPM variable? I thought about that "setx" but not sure what format the variable is supposed to be in.  How is it supposed to look?  For example:

setx $ENV .....

OR?

And if I could add it the Windows variable, what is the variable name? and what should the value look like?

Thanks for all the replies!

Re: Certificate Verify Failed

I-Team Employee
Employee
Posts: 186
5411     0

You set a variable in the windows environment that the perl enviroment will read when it starts up that causes it to change its behavior. It's the equivalent of a SETENV on a unix system if yuo're familiar with that.

 

 

 

Re: Certificate Verify Failed

BMontgomery
Techie
Posts: 3
5411     0

Maybe a little late but for Windows

set PERL_LWP_SSL_VERIFY_HOSTNAME=0

 

 

Re: Certificate Verify Failed

I-Team Employee
Employee
Posts: 186
5411     0

thanks!

Re: Certificate Verify Failed

yweyns
Techie
Posts: 13
5411     0

many thanks for this thread,

ran into the same problem and got it fixed with this solution.

yves

Helped me also to setup my

DMurnikow
Techie
Posts: 3
5411     0

Helped me also to setup my perl environment under windows 7. Thanks!

Showing results for 
Search instead for 
Do you mean 

Recommended for You