Hi all,
If you wanted to see the SSL certificate information for a specific website, you could do that via your browser, by clicking on the green padlock and then click on Certificate
which would open a modal with all of the information about the SSL certificate like the Common Names, the Organization that issued the certificate, the expiry date and etc.
Here’s how to do the same thing via your command line directly!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
In order to get the SSL information for a specific domain name you can use the
openssl
command: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:
In order to download the script, run:
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:
Here is a quick demo:
I hope that this helps! Regards, Bobby