Last active
August 29, 2015 14:19
-
-
Save digitalm/d65269d8c867086dd7a7 to your computer and use it in GitHub Desktop.
OpenSSLで秘密鍵と証明書の確認
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SSL更新で証明書と鍵のペアの正当性を確認 | |
# | |
# 証明書 | |
openssl x509 -noout -modulus -in /path/to/crt.crt | openssl md5 | |
# => XXXXYYYYZZZZ(32桁の文字列など) | |
# | |
# 鍵 | |
openssl rsa -noout -modulus -in /path/to/key.key | openssl md5 | |
# => XXXXYYYYZZZZ(32桁の文字列など) | |
# | |
# CSR | |
openssl req -noout -modulus -in /path/to/csr.csr | openssl md5 | |
# => XXXXYYYYZZZZ(32桁の文字列など) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment