Check SSL validity and details

Check SSL validity and details

1. Get complete available details of an SSL certificate

openssl x509 -text -in ssl.cert

2. Who issued the certificate.

openssl x509 -noout -in ssl.cert -issuer

3. To whom the certificate was issued

openssl x509 -noout -in ssl.cert -subject

4. To check the expiry date of SSL certificate

openssl x509 -noout -in ssl.cert -dates

5. To get SSL cert’s hash value

openssl x509 -noout -in ssl.cert -hash

6. To get SSL cert’s MD5 fingerprint

openssl x509 -noout -in ssl.cert -fingerprint

7. To check CSR:
openssl req -noout -text -in new.csr

8. To check key:

openssl rsa -noout -text -in new.key

SSL verification on https

Use the following command to verify ssl from command line.

openssl s_client -showcerts -connect http://www.domain.com:443

Check service SSL details and validity

#cd /var/cpanel/ssl/
#cd dovecot/
#openssl x509 -text -in dovecot.crt
#openssl verify dovecot.crt

—————–>

Advertisements

One thought on “Check SSL validity and details

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