Last active
August 29, 2015 13:59
-
-
Save tkuchiki/10822436 to your computer and use it in GitHub Desktop.
SSL証明書とキーのペアが妥当かを one liner で確認(bash限定)
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
diff <(openssl rsa -in example.com.key.pem -modulus -noout) <(openssl x509 -in example.com.cer.pem -modulus -noout) |
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
#!/bin/bash | |
diff <(openssl rsa -in $1 -modulus -noout) <(openssl x509 -in $2 -modulus -noout) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment