]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: verify that generated RSA-PSS keys can be read with certtool -k
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 26 May 2017 08:06:34 +0000 (10:06 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 29 May 2017 06:41:21 +0000 (08:41 +0200)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
tests/cert-tests/certtool-rsa-pss

index a4c65dc0b75f2b166507016bfbfd8a8f45487493..230fc34a0dbbd35a78fea8b96512988f52360a0a 100755 (executable)
@@ -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 '' \