From 7d73831ee7a204a9150b78840087bd7c92b514d3 Mon Sep 17 00:00:00 2001 From: Per Nilsson Date: Mon, 22 Jan 2024 10:54:56 +0100 Subject: [PATCH 1/2] Fix call to base64 on macos --- src/tests/tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/tests.sh b/src/tests/tests.sh index 52e891012..79a407c3e 100755 --- a/src/tests/tests.sh +++ b/src/tests/tests.sh @@ -32,7 +32,7 @@ PROG="../yubihsm-shell --connector=${DEFAULT_CONNECTOR_URL}" if [ "x$(uname)" = "xFreeBSD" ]; then DECODE="b64decode -pr" else - DECODE="base64 --decode" + DECODE="base64 --decode -i" fi echo "Hello World!" >"$DATA" From 55458ff1eaa16d3ad62d467ff565553e20e4ed51 Mon Sep 17 00:00:00 2001 From: Per Nilsson Date: Thu, 25 Jan 2024 17:17:48 +0100 Subject: [PATCH 2/2] Use pubkey to verify --- src/tests/wrapped_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/wrapped_tests.sh b/src/tests/wrapped_tests.sh index 16d6ba276..2ba807b28 100755 --- a/src/tests/wrapped_tests.sh +++ b/src/tests/wrapped_tests.sh @@ -223,7 +223,7 @@ put_yhwrapped_asymmetric_rsa() { --object-id="$keyid" --algorithm "rsa-pkcs1-sha256" --in="$sigbuf" --out "$signature.$size" --outformat="bin" echo "${FUNCNAME[0]}: verifying rsa$size sha256 signature" - openssl dgst -sha256 -verify "$keyfile.$size" -signature "$signature.$size" "$sigbuf" + openssl dgst -sha256 -verify "$keyfile.$size.pub" -signature "$signature.$size" "$sigbuf" done }