aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2026-07-20 19:05:50 +0200
committerGuilhem Moulin <guilhem@fripost.org>2026-07-20 19:24:58 +0200
commitfc52c4f391dd6cae1f20ebfc9aefd9f6bc78cfd8 (patch)
treeeabfa5c46ea19108f46b9f1d7fd647297ab2579f /tests
parentda63d5b6ca409b46161ceecab1b3dd3f831491df (diff)
accountd: Use PKCS#1 v1.5 signatures.
It's what JWT RS256 uses. Nedded for compatibility with Crypt::OpenSSL 0.38 and later.
Diffstat (limited to 'tests')
-rw-r--r--tests/old-accountd3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/old-accountd b/tests/old-accountd
index 3ad4b31..daa1996 100644
--- a/tests/old-accountd
+++ b/tests/old-accountd
@@ -19,6 +19,9 @@ DEBIAN_FRONTEND="noninteractive" apt install -y --no-install-recommends \
-oDPkg::Options::="--force-confdef" -oDPkg::Options::="--force-overwrite" \
lacme-accountd/stretch
+# somewhat cheating, but needed for an older accountd using a newer Crypt::OpenSSL::RSA
+sed -ri 's/^\s*\$rsa->use_sha256_hash\(\);$/& $rsa->use_pkcs1_padding();/' /usr/bin/lacme-accountd
+
SOCKET=~lacme-account/S.lacme
runuser -u lacme-account -- lacme-accountd --socket="$SOCKET" & PID=$!
sleep 1