Using curl to Check an SSL Certificate's Expiration Date and Details

preview_player
Показать описание
Here's a quick way to make sure your load balancer or web server is serving the correct SSL cert.

Hit the subscribe button to receive more videos like this!

REFERENCE LINKS
---------------------------------------------------

COURSES
---------------------------------------------------
Courses I've created that focus on web dev and deployment topics.

THE TOOLS I USE / GEAR
---------------------------------------------------

FOLLOW ME ELSEWHERE
---------------------------------------------------

TIMESTAMPS
---------------------------------------------------
0:00 -- Intro
0:08 -- Assembling our curl command
0:43 -- Taking a look at the certificate's details
1:28 -- Parsing out the expiration date with grep and cut
4:10 -- Getting similar information in a browser
4:59 -- Burning the vI or Iv flags into muscle memory
5:35 -- Why? Your load balancer might support multiple certs
Рекомендации по теме
Комментарии
Автор

Really helpful thanks. Had SSL issues recently and it's nice to have another tool in the belt for future troubleshooting

bluvven
Автор

Awesome bro. Never stop your content. Please.

rapoliit
Автор

Hi Nick. This was awesome. I loved it.

singerabantika
Автор

Hi Nick, Very handy and very useful commands. Thanks for knowledge sharing. I really appreciate all your efforts and hard work. 🙏

Kylix-wybr
Автор

Hi, Nick. It seems that due to an update, that command doesn't show the SSL cert information anymore. Any ideas? (my curl version is 7.83.1)

serjdaza
Автор

Thanks this is helpful, is there a way to do automation with this command and check several web sites ssl cert expiration date let’s say every “x” amount of days and have the command email results?

ktube
Автор

The curl method does not work if certificate has already expired. If you want to check the expiration date on the site for which the certificate has expired, curl will return a connection error.