I have added SSL support to my libwww and I am able to download some sites with the LWP::UserAgent. The problem is that there is a site that needs me send a certificate for identification otherwise I get the response:
Failed: 500 SSL negotiation failed: error:1406D0FD:SSL routines:GET_SERVER_HELLO:unknown remote error type
Please notice that when I use the browser IE for that URL, it prompts me with that client authentication window: "The web site you want to view request identification. Select the certificate to use when connecting." Then I can put the certifcate file there and have the browser retrieve the page.
My question is, how can I send a certificate to a server along with with my form post? Thanks a lot for the help.
If you are using Crypt::SSLeay for SSL, then check out the "perldoc Crypt::SSLeay"
You will find these settings described which may be useful:
# CLIENT CERT SUPPORT $ENV{HTTPS_CERT_FILE} = 'certs/notacacert.pem'; $ENV{HTTPS_KEY_FILE} = 'certs/notacakeynopass.pem';
# CA CERT PEER VERIFICATION $ENV{HTTPS_CA_FILE} = 'certs/ca-bundle.crt'; $ENV{HTTPS_CA_DIR} = 'certs/';
# CLIENT PKCS12 CERT SUPPORT $ENV{HTTPS_PKCS12_FILE} = 'certs/pkcs12.pkcs12'; $ENV{HTTPS_PKCS12_PASSWORD} = 'PKCS12_PASSWORD';
Regards,
Josh
________________________________________________________________ Josh Chamas, Founder phone:925-552-0128 Chamas Enterprises Inc. http://www.chamas.com NodeWorks Link Checker http://www.nodeworks.com