Skip to content

Commit 0dd9c3d

Browse files
authored
test: update verify_cert.sh to pass without changes to certs issued by LF (#53)
1 parent ea06bd2 commit 0dd9c3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/verify_cert.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fi
2020

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

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

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

0 commit comments

Comments
 (0)