1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

openssl で 証明書の期限を確認する

Last updated at Posted at 2018-01-24

次の記事を参考にして、qiita.com でテストしてみました。
opensslコマンドでSSL証明書の有効期限を確認する
curlでSSLでつないだときのSSLのヘッダを読みたいのですが、どのような方法があるでしょうか

$ openssl s_client -connect qiita.com:443 -servername qiita.com < /dev/null 2> /dev/null | openssl x509 -noout -startdate -enddate
notBefore=Dec  4 00:00:00 2022 GMT
notAfter=Jan  2 23:59:59 2024 GMT

使った openssl のバージョンです。

$ openssl version
OpenSSL 3.0.5 5 Jul 2022 (Library: OpenSSL 3.0.5 5 Jul 2022)
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?