I want to know is it possible to read information from other parties using PHP about their SSL certificate information, I've tried to find about it for ages but there's no real answer that has been found for me.
For example, I input "www.paypal.com" into the script and it will return the following:
- Authority: VeriSign, Inc
- Expires: 18th February 2011 (18/02/11)
- Type: Extended Validation
- Host: www.paypal.com
- MD5: a8e7o7a8e9e9
- SHA1: c2a4a1e4e3a2
And, whatever else is possible to obtain. I would like the script in PHP please.
I have written a PHP class for getting SSL information:
EX:
[Make sure you understand the "instantiate" method inside SSL class]. Thank you...
PHP's OpenSSL functions like openssl_x509_parse should help you out.