From: Nikos Mavrogiannopoulos Date: Fri, 26 May 2017 08:06:34 +0000 (+0200) Subject: tests: verify that generated RSA-PSS keys can be read with certtool -k X-Git-Tag: gnutls_3_6_0~516 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d04adcd66de15aabc679bf3db08f923a54abf5b8;p=thirdparty%2Fgnutls.git tests: verify that generated RSA-PSS keys can be read with certtool -k Signed-off-by: Nikos Mavrogiannopoulos --- diff --git a/tests/cert-tests/certtool-rsa-pss b/tests/cert-tests/certtool-rsa-pss index a4c65dc0b7..230fc34a0d 100755 --- a/tests/cert-tests/certtool-rsa-pss +++ b/tests/cert-tests/certtool-rsa-pss @@ -49,6 +49,13 @@ if test "${rc}" != "0"; then exit 1 fi +${VALGRIND} "${CERTTOOL}" -k --password '' --infile "$OUTFILE" +rc=$? +if test "${rc}" != "0"; then + echo "Could not read generated an RSA-PSS key ($i)" + exit 1 +fi + # Create an RSA-PSS certificate from an RSA-PSS private key ${VALGRIND} "${CERTTOOL}" --generate-self-signed \ --pkcs8 --load-privkey "$OUTFILE" --password '' \