I ran the following commands in Linux to get 'Period of validity' and 'Issuer' of a domain respectively
openssl s_client -connect www.example.com:443 2>/dev/null | openssl x509 -noout -dates
output:
notBefore=Nov 6 00:00:00 2014 GMT
notAfter=Nov 13 12:00:00 2015 GMT
openssl s_client -connect www.example.com:443 2>/dev/null | openssl x509 -noout -issuer
Output:
issuer= /C=US/O=DigiCert Inc/OU=http://ift.tt/1mUHKzG SHA2 High Assurance Server CA
Similarly Is there any way to get Certificate Type (EV/OV/DV) from the certificate?
I tried the following command and get entire certificate at output, but can't find Certificate Type from it.
openssl s_client -connect google.com:443 2>/dev/null | openssl x509 -noout -issuer
Is it possible to get certificate type? Any help would be much appreciated.
Aucun commentaire:
Enregistrer un commentaire