From b78ba6596335400d932dd3bbacb6723e0e2c66e5 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 10 Oct 2024 15:06:27 +0200 Subject: install-https: Remove smime -verify, rather pointless --- scripts/install-https | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/install-https b/scripts/install-https index e6daeea..75fd816 100755 --- a/scripts/install-https +++ b/scripts/install-https @@ -42,13 +42,11 @@ op_test () is_readable "$C" || exit 3 # Encrypt something, then decrypt again and compare local TEST_IN=$(mktemp --tmpdir bwlp-XXXXXXXX) - local TEST_OUT=$(mktemp --tmpdir bwlp-XXXXXXXX) [ -z "$TEST_IN" ] && exit 4 - [ -z "$TEST_OUT" ] && exit 5 - tmpfiles+=( "$TEST_IN" "$TEST_OUT" ) + tmpfiles+=( "$TEST_IN" ) date > "$TEST_IN" - openssl smime -sign -in "$TEST_IN" -out "$TEST_OUT" -signer "$C" -inkey "$K" || exit 7 - openssl smime -verify -noverify -in "$TEST_OUT" -out /dev/null -signer "$C" || exit 8 + # Try to sign something - output doesn't matter, this is only to check if cert and key match + openssl smime -sign -in "$TEST_IN" -out /dev/null -signer "$C" -inkey "$K" || exit 7 exit 0 # No restart either way } -- cgit v1.2.3-55-g7522