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
—————–>