Created
July 7, 2021 17:32
-
-
Save genothomas/80f15620e7a6df86a113d7f6c1155080 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
# | |
# validates if key and cert are matched | |
# | |
openssl rsa -noout -modulus -in $1 | openssl md5 | |
openssl x509 -noout -modulus -in $2 | openssl md5 | |
echo "if the md5 matches, the key matches the cert" | |
# check info in csr | |
#openssl req -text -noout -verify -in my.csr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment