How to get the SSL certificate details for a specific domain via the command line? | DigitalOcean (2024)

Question

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.

How to get the SSL certificate details for a specific domain via the command line? | DigitalOcean (2)

Here’s how to do the same thing via your command line directly!

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Bobby Iliev

Site Moderator

How to get the SSL certificate details for a specific domain via the command line? | DigitalOcean (3)

November 29, 2020

Accepted Answer

In order to get the SSL information for a specific domain name you can use the openssl command:

  1. 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:

  1. wget https://raw.githubusercontent.com/bobbyiliev/bash-ssl-checker-tool/master/ssl

Then to run the script make it executable:

  1. chmod +x ssl

And then run it for your domain name:

  1. ./ssl yourdomain.com

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:90 days----# Dates:Issued On: Jun 4 09:05:19 2020 GMTExpires 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:| TLSv1.0:| TLSv1.1:| TLSv1.2:----# Fingerprint:SHA1 Fingerprint=C1:E1:6C:46:8A:74:94:14:00:94:88:B9:4B:2B:C5:90:79:DE:72:64----

Here is a quick demo:

How to get the SSL certificate details for a specific domain via the command line? | DigitalOcean (4)

I hope that this helps!Regards,Bobby

How to get the SSL certificate details for a specific domain via the command line? | DigitalOcean (2024)
Top Articles
How Long Do ASICs Last?
Antminer S19 Review: The Go-To Miner for 2023?
Goodbye Horses: The Many Lives of Q Lazzarus
Ofw Pinoy Channel Su
Craigslist Heavy Equipment Knoxville Tennessee
Yesteryear Autos Slang
Troy Athens Cheer Weebly
No Strings Attached 123Movies
Youravon Comcom
Unlv Mid Semester Classes
Lake Nockamixon Fishing Report
979-200-6466
Craigslist Panama City Fl
London Ups Store
Everything We Know About Gladiator 2
Amih Stocktwits
라이키 유출
Milanka Kudel Telegram
zom 100 mangadex - WebNovel
Quick Answer: When Is The Zellwood Corn Festival - BikeHike
John Chiv Words Worth
48 Oz Equals How Many Quarts
Albert Einstein Sdn 2023
Victory for Belron® company Carglass® Germany and ATU as European Court of Justice defends a fair and level playing field in the automotive aftermarket
Soul Eater Resonance Wavelength Tier List
Mta Bus Forums
2011 Hyundai Sonata 2 4 Serpentine Belt Diagram
Labcorp.leavepro.com
Kqelwaob
Nacogdoches, Texas: Step Back in Time in Texas' Oldest Town
6143 N Fresno St
M3Gan Showtimes Near Cinemark North Hills And Xd
Ket2 Schedule
Scottsboro Daily Sentinel Obituaries
450 Miles Away From Me
Trizzle Aarp
Keir Starmer looks to Italy on how to stop migrant boats
Discover Wisconsin Season 16
Sukihana Backshots
Conan Exiles Armor Flexibility Kit
Tgirls Philly
Brake Pads - The Best Front and Rear Brake Pads for Cars, Trucks & SUVs | AutoZone
Squalicum Family Medicine
Hawkview Retreat Pa Cost
tampa bay farm & garden - by owner "horses" - craigslist
Rick And Morty Soap2Day
The 13 best home gym equipment and machines of 2023
Freightliner Cascadia Clutch Replacement Cost
Product Test Drive: Garnier BB Cream vs. Garnier BB Cream For Combo/Oily Skin
Jovan Pulitzer Telegram
Unbiased Thrive Cat Food Review In 2024 - Cats.com
Booked On The Bayou Houma 2023
Latest Posts
Article information

Author: Tuan Roob DDS

Last Updated:

Views: 6382

Rating: 4.1 / 5 (42 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Tuan Roob DDS

Birthday: 1999-11-20

Address: Suite 592 642 Pfannerstill Island, South Keila, LA 74970-3076

Phone: +9617721773649

Job: Marketing Producer

Hobby: Skydiving, Flag Football, Knitting, Running, Lego building, Hunting, Juggling

Introduction: My name is Tuan Roob DDS, I am a friendly, good, energetic, faithful, fantastic, gentle, enchanting person who loves writing and wants to share my knowledge and understanding with you.