summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-05-26 10:06:34 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-05-29 08:41:21 +0200
commitd04adcd66de15aabc679bf3db08f923a54abf5b8 (patch)
tree0a20902e2f539b32d7ff67f25882e867d98fde9f /tests
parent512b3d32254c0f46500b9e226d108c7b7e1bf332 (diff)
downloadgnutls-d04adcd66de15aabc679bf3db08f923a54abf5b8.tar.gz
tests: verify that generated RSA-PSS keys can be read with certtool -k
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/cert-tests/certtool-rsa-pss7
1 files changed, 7 insertions, 0 deletions
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 '' \