summaryrefslogtreecommitdiff
path: root/tests/cert-tests/certtool
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cert-tests/certtool')
-rwxr-xr-xtests/cert-tests/certtool8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/cert-tests/certtool b/tests/cert-tests/certtool
index 3fd2398364..e9c62aa76f 100755
--- a/tests/cert-tests/certtool
+++ b/tests/cert-tests/certtool
@@ -65,6 +65,14 @@ if test "${id}" != "118e72e3655150c895ecbd19b3634179fb4a87c7a25abefcb11f5d66661d
exit 1
fi
+id=`"${CERTTOOL}" --pubkey-info <"${srcdir}/data/funny-spacing.pem"|"${CERTTOOL}" --key-id --hash sha512| tr -d '\r'`
+rc=$?
+
+if test "${id}" != "5e81ba533b1e7b88b3b0834a392c1cd63f8ccbe45f39edf4cb4b6a3e7700b333cfa386c54b1c5704a2b82a20dc417b347bb8f961c339134a91158a134ca6c478"; then
+ echo "Key-ID4 doesn't match the expected: ${id}"
+ exit 1
+fi
+
#fingerprint
id=`${VALGRIND} "${CERTTOOL}" --fingerprint --infile "${srcdir}/data/funny-spacing.pem"| tr -d '\r'`
rc=$?