ssl - Verifying peer certificate before posting xml? -


I have to post XML on a server via https, but I have to verify that the self-signed server certificate first Correct I push XML (which contains sensitive information).

I prefer a Pearl solution, but there is no CPAN solution that actually confirmed for authentication I thought Crypt :: SSLeay could do this, but I did not test ()

I saw Python briefly (though I'm not sure if I can install a non-Pearl language on my production server), but it seems that the validation validation version Not supported until 2.6.0.

Maybe I can open something for some - wget actually verifies Peer Certificate, but I'm not sure how to stop the XML post until it is valid. It seems that it will take two wget requests: to validate a certificate, and to post an XML

any suggestions?

Thanks

You should use cURL, not wget. Curl peer supports certificate verification.

You can open curl on the command line and perform, or use the Pearl library; WWW :: Curl

Good luck!


Comments