Skip to content

Commit

Permalink
test: update verify_cert.sh to pass without changes to certs issued b…
Browse files Browse the repository at this point in the history
…y LF (#53)
  • Loading branch information
timmywil authored Jul 2, 2024
1 parent ea06bd2 commit 0dd9c3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/verify_cert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fi

pemfilename="$1"
keyfilename="${1%.pem}.key"
cabundlefilename="${1%.pem}.ca-bundle"
cabundlefilename="${1%.pem}_bundle.pem"
if [ ! -f "$pemfilename" ]; then
echo -e "Error: Could not find $pemfilename"
exit 1
Expand All @@ -45,7 +45,7 @@ openssl verify -CAfile "$cabundlefilename" "$pemfilename"

echo -e "\n${bold}Verify the public keys match (expect \"Keys match\"):${normal}"
pemkey=`openssl x509 -noout -pubkey -in "$pemfilename"`
pubkey=`openssl rsa -pubout -in "$keyfilename" 2>/dev/null`
pubkey=`openssl ec -pubout -in "$keyfilename" 2>/dev/null`
keydiff=`diff <(echo $pemkey) <(echo $pubkey)`

if [ ${#keydiff} -eq 0 ]; then
Expand Down

0 comments on commit 0dd9c3d

Please sign in to comment.