Skip to content

Instantly share code, notes, and snippets.

@tkuchiki
Last active August 29, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkuchiki/10822436 to your computer and use it in GitHub Desktop.
Save tkuchiki/10822436 to your computer and use it in GitHub Desktop.
SSL証明書とキーのペアが妥当かを one liner で確認(bash限定)
diff <(openssl rsa -in example.com.key.pem -modulus -noout) <(openssl x509 -in example.com.cer.pem -modulus -noout)
#!/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