Skip to content

Commit 26e11ac

Browse files
committed
Add certificate sanity check
1 parent cc9c9d7 commit 26e11ac

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

scripts/create-issuer-mdl-cert.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,12 @@ echo ${DER}
6767
echo ${KEY}
6868
echo ${PUB_JWK}
6969
echo ${JWK}
70+
71+
echo "== Sanity check =="
72+
openssl x509 -inform der -in ${DER} -out sanity.crt.pem
73+
74+
openssl x509 -in sanity.crt.pem -pubkey -noout > sanity_cert_pubkey.pem
75+
openssl pkey -in ${KEY} -pubout > sanity_key_pubkey.pem
76+
77+
diff sanity_cert_pubkey.pem sanity_key_pubkey.pem
78+
echo "OK"

0 commit comments

Comments
 (0)