From d55b41b8aa58d4878a156e9ad999b2d577416fda Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sun, 1 Oct 2017 12:14:11 +0200 Subject: tests: check fingerprint generation with SHA512 Signed-off-by: Nikos Mavrogiannopoulos --- tests/cert-tests/certtool | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/cert-tests/certtool b/tests/cert-tests/certtool index ad66d8ffe7..3fd2398364 100755 --- a/tests/cert-tests/certtool +++ b/tests/cert-tests/certtool @@ -82,6 +82,14 @@ if test "${id}" != "fc5b45b20c489393a457f177572920ac40bacba9d25cea51200822271eaf exit 1 fi +id=`${VALGRIND} "${CERTTOOL}" --fingerprint --hash sha512 --infile "${srcdir}/data/funny-spacing.pem"| tr -d '\r'` +rc=$? + +if test "${id}" != "c4880390506a849cd2d8289fb8aea8c189e635aff1054faba58658a0f107472b725672c10d2f7f4ca360528b9433db278f544846e5613f9cd4cb4aa2f56a7894"; then + echo "Fingerprint doesn't match the expected: 5" + exit 1 +fi + export TZ="UTC" . ${srcdir}/../scripts/common.sh -- cgit v1.2.1