diff --git a/tests/setup-softhsm.sh b/tests/setup-softhsm.sh index 260e45c9..a2f2ce7a 100755 --- a/tests/setup-softhsm.sh +++ b/tests/setup-softhsm.sh @@ -247,12 +247,14 @@ pkcs11-tool --keypairgen --key-type="EC:edwards25519" --login --pin=$PINVALUE -- --label="${EDCRTN}" --id="$KEYID" ca_sign $EDCRT $EDCRTN "My ED25519 Cert" $KEYID +EDBASEURIWITHPIN="pkcs11:id=${URIKEYID};pin-value=${PINVALUE}" EDBASEURI="pkcs11:id=${URIKEYID}" EDPUBURI="pkcs11:type=public;id=${URIKEYID}" EDPRIURI="pkcs11:type=private;id=${URIKEYID}" EDCRTURI="pkcs11:type=cert;object=${EDCRTN}" title LINE "ED25519 PKCS11 URIS" +echo "${EDBASEURIWITHPIN}" echo "${EDBASEURI}" echo "${EDPUBURI}" echo "${EDPRIURI}" @@ -407,6 +409,7 @@ export ECPEERPUBURI="${ECPEERPUBURI}" export ECPEERPRIURI="${ECPEERPRIURI}" export ECPEERCRTURI="${ECPEERCRTURI}" +export EDBASEURIWITHPIN="${EDBASEURIWITHPIN}" export EDBASEURI="${EDBASEURI}" export EDPUBURI="${EDPUBURI}" export EDPRIURI="${EDPRIURI}" diff --git a/tests/tbasic b/tests/tbasic index 2ca45f55..39240bb8 100755 --- a/tests/tbasic +++ b/tests/tbasic @@ -121,11 +121,13 @@ OPENSSL_CONF=${OPENSSL_CONF}.nopin ossl 'pkey -in $PUBURI -pubin -pubout -out ${TMPPDIR}/rsa.pub.nopin.pem' ossl 'pkey -in $ECPUBURI -pubin -pubout -out ${TMPPDIR}/ec.pub.nopin.pem' [[ -n $ECXPUBURI ]] && ossl 'pkey -in $ECXPUBURI -pubin -pubout -out ${TMPPDIR}/ecx.pub.nopin.pem' +[[ -n $EDPUBURI ]] && ossl 'pkey -in $EDPUBURI -pubin -pubout -out ${TMPPDIR}/ed.pub.nopin.pem' title PARA "Test fetching public keys with a PIN in URI" ossl 'pkey -in $BASEURIWITHPIN -pubin -pubout -out ${TMPPDIR}/rsa.pub.uripin.pem' ossl 'pkey -in $ECBASEURIWITHPIN -pubin -pubout -out ${TMPPDIR}/ec.pub.uripin.pem' [[ -n $ECXBASEURIWITHPIN ]] && ossl 'pkey -in $ECXBASEURIWITHPIN -pubin -pubout -out ${TMPPDIR}/ecx.pub.uripin.pem' +[[ -n $EDBASEURIWITHPIN ]] && ossl 'pkey -in $EDBASEURIWITHPIN -pubin -pubout -out ${TMPPDIR}/ed.pub.uripin.pem' title PARA "Test prompting without PIN in config files" output=$(expect -c "spawn -noecho $CHECKER openssl pkey -in \"${PRIURI}\" -text -noout; diff --git a/tests/tedwards b/tests/tedwards index 091deda3..ec79dab6 100755 --- a/tests/tedwards +++ b/tests/tedwards @@ -39,6 +39,9 @@ req -new -batch -key "${EDPRIURI}" -out ${TMPPDIR}/ed25519_csr.pem' ossl ' req -in ${TMPPDIR}/ed25519_csr.pem -verify -noout' +title PARA "Test EVP_PKEY_eq on public Edwards key both on token" +$CHECKER ./tcmpkeys "$EDPUBURI" "$EDPUBURI" + title PARA "Test EVP_PKEY_eq on public ED key via import" $CHECKER ./tcmpkeys "$EDPUBURI" "${TMPPDIR}"/edout.pub title PARA "Match private ED key against public key"