In order to get the SSL information for a specific domain name you can use the
- echo | openssl s_client -servername yourdomain.com -connect yourdomain.com:443
This would return a lot of information, which could then filter through and get the information that you need.
Another thing you could do is to put this into a small Bash script and filter through the information that you need only. You could check this Bash SSL checker tool here on GitHub.
The script provides you with the following information:
- The domain name that the SSL certificate has been issued for
- The number of days the SSL certificate expires in:
- The dates when the certificate was issued on and expires on
- The certificate has been issued by:
- Supported TLS versions
- Certificate Fingerprint
In order to download the script, run:
- wget https://raw.githubusercontent.com/bobbyiliev/bash-ssl-checker-tool/master/ssl
Then to run the script make it executable:
And then run it for your domain name:
The output that you would get will look like this:
The bobbyiliev.com domain name seems valid.
# The SSL certificate has been issued for:
Domain: CN = bobbyiliev.com
# The SSL certificate expires in:
Issued On: Jun 4 09:05:19 2020 GMT
Expires On: Sep 2 09:05:19 2020 GMT
# The certificate has been issued by:
Issuer: C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3
# TLS supported:
Here is a quick demo:
I hope that this helps!