Retrieving information from an SSL Certificate ( Using openssl command line)

Assume that cert.pem is the cert you have as a text file.

>> who issued the cert?
openssl x509 -noout -in cert.pem -issuer

>> to whom was it issued?
openssl x509 -noout -in cert.pem -subject
>> for what dates is it valid?
openssl x509 -noout -in cert.pem -dates

>> the above, all at once
openssl x509 -noout -in cert.pem -issuer -subject -dates

>> what is its hash value?
openssl x509 -noout -in cert.pem -hash

>> what is its MD5 fingerprint?
openssl x509 -noout -in cert.pem -fingerprint

Advertisements

Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: