summaryrefslogtreecommitdiff
path: root/tests/cert-tests
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-06-02 09:44:52 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-07-17 17:08:01 +0200
commite80dd2beb5392255ad619fd578bf86889794f28d (patch)
tree75dc3cecb63b3bbad71ef8c5e052c1fb9121941b /tests/cert-tests
parent4f0e7e9a5048d5dbf22369aa475bcb0078b863f5 (diff)
downloadgnutls-e80dd2beb5392255ad619fd578bf86889794f28d.tar.gz
tests: replaced rsa-pss/eddsa certtool options with --key-type
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'tests/cert-tests')
-rwxr-xr-xtests/cert-tests/certtool-eddsa4
-rwxr-xr-xtests/cert-tests/certtool-rsa-pss4
-rwxr-xr-xtests/cert-tests/rsa-pss-pad2
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/cert-tests/certtool-eddsa b/tests/cert-tests/certtool-eddsa
index cd3c43ee5a..1a9661a520 100755
--- a/tests/cert-tests/certtool-eddsa
+++ b/tests/cert-tests/certtool-eddsa
@@ -70,7 +70,7 @@ fi
# Create an RSA-PSS private key, restricted to the use with RSA-PSS
${VALGRIND} "${CERTTOOL}" --generate-privkey --pkcs8 --password '' \
- --eddsa --outfile "$KEYFILE"
+ --key-type eddsa --outfile "$KEYFILE"
rc=$?
if test "${rc}" != "0"; then
@@ -106,7 +106,7 @@ if test "${rc}" != "0"; then
fi
# Create an EdDSA certificate from an RSA key
-${VALGRIND} "${CERTTOOL}" --generate-certificate --eddsa \
+${VALGRIND} "${CERTTOOL}" --generate-certificate --key-type eddsa \
--load-privkey ${KEYFILE} \
--load-ca-privkey "${srcdir}/../../doc/credentials/x509/ca-key.pem" \
--load-ca-certificate "${srcdir}/../../doc/credentials/x509/ca.pem" \
diff --git a/tests/cert-tests/certtool-rsa-pss b/tests/cert-tests/certtool-rsa-pss
index 24a45a2d94..81417d199b 100755
--- a/tests/cert-tests/certtool-rsa-pss
+++ b/tests/cert-tests/certtool-rsa-pss
@@ -41,7 +41,7 @@ fi
# Create an RSA-PSS private key, restricted to the use with RSA-PSS
${VALGRIND} "${CERTTOOL}" --generate-privkey --pkcs8 --password '' \
- --rsa-pss --hash $i --outfile "$OUTFILE"
+ --key-type rsa-pss --hash $i --outfile "$OUTFILE"
rc=$?
if test "${rc}" != "0"; then
@@ -84,7 +84,7 @@ fi
done
# Create an RSA-PSS certificate from an RSA key
-${VALGRIND} "${CERTTOOL}" --generate-certificate --rsa-pss \
+${VALGRIND} "${CERTTOOL}" --generate-certificate --key-type rsa-pss \
--load-privkey "${srcdir}/../../doc/credentials/x509/key-rsa.pem" \
--load-ca-privkey "${srcdir}/../../doc/credentials/x509/ca-key.pem" \
--load-ca-certificate "${srcdir}/../../doc/credentials/x509/ca.pem" \
diff --git a/tests/cert-tests/rsa-pss-pad b/tests/cert-tests/rsa-pss-pad
index 8129d9adcb..e2eccfbe8e 100755
--- a/tests/cert-tests/rsa-pss-pad
+++ b/tests/cert-tests/rsa-pss-pad
@@ -43,7 +43,7 @@ check_for_datefudge
for i in sha256 sha384 sha512;do
datefudge -s "2007-04-22" \
-"${CERTTOOL}" --generate-self-signed --rsa-pss \
+"${CERTTOOL}" --generate-self-signed --key-type rsa-pss \
--load-privkey "${srcdir}/data/template-test.key" \
--template "${srcdir}/templates/template-test.tmpl" \
--outfile "${TMPFILE}" --hash $i 2>/dev/null