Skip to content

Commit

Permalink
Fix call to base64 on macos (#382)
Browse files Browse the repository at this point in the history
* Fix call to base64 on macos

* Use pubkey to verify
  • Loading branch information
qpernil authored Jan 25, 2024
1 parent da4af7d commit 6f116bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tests/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/tests/wrapped_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 6f116bb

Please sign in to comment.