LoginSignup
0
0

More than 3 years have passed since last update.

SSL証明書の署名アルゴリズムを調べる

Last updated at Posted at 2019-12-17

日本政府が、2019年度末で使用停止としているSHA-1署名のSSL証明書。

自分が使っている証明書が、SHA-2(sha256)となっているか確認するコマンドを調べた。

bash
$ openssl s_client -connect domain.com:443 -showcerts < /dev/null | openssl x509 -text -in /dev/stdin    

このコマンドで得た出力の中に、以下の記述があればSHA-2であると考えていい。

output
...
Certificate:
  Data:
    ...
  Signature Algorithm: sha256WithRSAEncryption
    ...
...

ブラウザ上で調べる方法もありますが、黒い画面に向かう人間からすると、コマンドのほうが安心感がある。

0
0
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
0
0