Skip to content

Commit

Permalink
Add test to check certs can be pulled w/o pin
Browse files Browse the repository at this point in the history
Signed-off-by: Simo Sorce <[email protected]>
  • Loading branch information
simo5 committed Feb 10, 2025
1 parent 25483ba commit ecb173b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/tcerts
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,11 @@ if [[ ! ${DATA} =~ "Total found: 1" ]]; then
fi
done

title PARA "Test fetching certificate without PIN in config files"
ORIG_OPENSSL_CONF=${OPENSSL_CONF}
sed "s/^pkcs11-module-token-pin.*$/##nopin/" "${OPENSSL_CONF}" > "${OPENSSL_CONF}.nopin"
OPENSSL_CONF=${OPENSSL_CONF}.nopin
ossl 'x509 -in $CRTURI -subject -out ${TMPPDIR}/crt-subj-nopin.txt'

OPENSSL_CONF=${ORIG_OPENSSL_CONF}
exit 0

0 comments on commit ecb173b

Please sign in to comment.