Perl LWP SSL connection: certificate verify fails -


My application requires LWP under SSL, but I do not seem to connect it properly without getting errors so may.

failed to verify the certificate) LWP :: Protocol :: https :: Socket: SSL connect attempt failed with unknown error error: 140 9 0086: SSL routine: SSL3_GET_SERVER_CERTIFICATE: Proof Verify the letter failed on C: / Perl /site/lib/LWP/Protocol/http.pm line 51

Every time I load the website in Firefox on my server, I get

this connection is unreliable (Technical error: sec_error_unknown_issuer)

Whenever I load it in Chrome, it confirms exactly

I have Firefox on my computer and I can load the page in Chrome and can not get any SSL verification errors at all.

I have no indication that is different between my PC and my server; Both of them are using the same Firefox versions, so I'm not sure why this will not be verified properly.

I have tried to work by putting in $ ENV {PERL_LWP_SSL_VERIFY_HOSTNAME} = 0 in the Perl script, but it seems that it is still going to throw a single exact error.

Do anyone know any solution to this or any workaround? I have tried to work by inserting <$ ENV {PERL_LWP_SSL_VERIFY_HOSTNAME} = 0 ; / Div>

The name of the option indicates how to disable the hostname check against this certificate Cares. This certificate does not disable the chain recognition.

Every time I load a website in Firefox on my server, I get ... ...

Since you have Firefox and LWP With verification errors, but no chrome, Chrome is probably an extra CA in the form of trustworthy, which they do not have.

From your code it seems that you are using Windows and I think Firefox comes with its CA store, LWP Mozilla :: CA (which is usually the CA sent with Firefox ), But Chrome System CA Store is probably a CA in the system store that does not know about Firefox and LWP.

However it may be that there is some special esoteric CA which is known from the default Windows CA store but not Firefox, it is more likely that you are behind some SSL inspection firewall and that the administrator has made windows The required proxy certificate was added to the CA store but not in the Firefox or LWP stores. I recommend that you check the certificate chain inside the Chrome browser and see the top (Biltin) certificate

If you trust CA you can export it and import it into Firefox. LWP can also use this CA to be saved in the PEM format and then PERL_LWP_SSL_CA_PATH to indicate the saved environment variable to the saved file or SSL_ca_path of the option Ssl_opts To use the CA certification for setting verification, make LWP.

If this explanation does not take any solution, please give more information about the goal URL that you are trying to access and the network setup you have, especially if the SSL blocking proxy Or firewall, please also provide information about the version of LWP that you are using, because a lot has changed in version 6.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -