in reply to Re^2: Difference between curl and Net;;SSLeay for getting the SSL connection
in thread Difference between curl and Net;;SSLeay for getting the SSL connection

Firstly, please use <readmore> tags when you post large amounts of code.

I was getiint the following errors

1.Not proxied and
Please read the Crypt::SSLeay documentation.

Don't use LWP's env_proxy method, it doesn't work properly in all situations with HTTPS. Set the HTTPS_PROXY variable in the environment, Crypt::SSLeay will pick up on it and use the appropriate arguments to the SSL connect() method. You may also need to set the HTTPS_PROXY_USERNAME and HTTPS_PROXY_PASSWORD variables (if the proxy requires basic authentication).

2.peer certificate is not varified
And fact is that Client is saying that if you are having SSL implementation to connect to thier gateway it will not ask for certificae.
So does the server require peer certificate authentication or not?

If it does, you'll need to set the HTTPS_CERT_FILE and HTTPS_KEY_FILE environment variables, so that Crypt::SSLeay will know where to look for those files.

Can you please look at the following code.
I have no idea what you're doing with all that header manipulation... can I presume that the payment gateway documentation prescribes those actions?

-David

  • Comment on Re^3: Difference between curl and Net;;SSLeay for getting the SSL connection