aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cert-install
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2024-06-13 03:33:20 +0200
committerGuilhem Moulin <guilhem@fripost.org>2024-06-13 15:41:12 +0200
commitbf4d2d13ffcd894c6e7765dbd366f1163c69c9e1 (patch)
treed234196cc004dec3482716d2b3a6b5425d8386ed /tests/cert-install
parent568656b1fcb60d451b4a5313876ef0b96ae8bbfd (diff)
Pass `-in /dev/stdin` option to openssl(1) to avoid warning with recent versions.
OpenSSL 3.2 from Debian sid spews Warning: Reading certificate from stdin since no -in or -new option is given without an explicit `-in /dev/stdin`.
Diffstat (limited to 'tests/cert-install')
-rw-r--r--tests/cert-install4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cert-install b/tests/cert-install
index 4182790..e24fe34 100644
--- a/tests/cert-install
+++ b/tests/cert-install
@@ -46,9 +46,9 @@ diff --unified /etc/lacme/test1.crt /etc/lacme/test1.pem
check_hash() {
local p1="$1" p2 s1 s2
- s1="$(openssl x509 -noout -hash <"$p1")"
+ s1="$(openssl x509 -in "$p1" -noout -hash)"
for p2 in /usr/share/lacme/ca-certificates.pem.*; do
- s2="$(openssl x509 -noout -hash <"$p2")"
+ s2="$(openssl x509 -in "$p2" -noout -hash)"
if [ "$s1" = "$s2" ]; then
return 0
fi