diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2024-03-06 14:52:56 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2024-03-06 15:09:05 +0100 |
commit | a4accc44ac1fddffba31d9bf52b76738a3562057 (patch) | |
tree | f6b05832512addfa530726f154dd3a413325243a /tests/tls-verify-peer | |
parent | eb254348085047702ee37e405d171d894dc5ffff (diff) |
tests/*/t: Explicitly pass `-in /dev/stdin` to openssl(1).
Diffstat (limited to 'tests/tls-verify-peer')
-rw-r--r-- | tests/tls-verify-peer/t | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/tls-verify-peer/t b/tests/tls-verify-peer/t index 7e50b24..ee4cd88 100644 --- a/tests/tls-verify-peer/t +++ b/tests/tls-verify-peer/t @@ -1,8 +1,9 @@ X509_SHA256="$(doveconf -c "$HOME_remote/.dovecot/config" -hx ssl_cert \ - | openssl x509 -noout -fingerprint -sha256 \ + | openssl x509 -in /dev/stdin -noout -fingerprint -sha256 \ | sed -rn "/^.*=\\s*/ {s///p;q}" | tr -d : | tr "[A-Z]" "[a-z]")" PKEY_SHA256="$(doveconf -c "$HOME_remote/.dovecot/config" -hx ssl_cert \ - | openssl x509 -pubkey | openssl pkey -pubin -outform DER \ + | openssl x509 -in /dev/stdin -pubkey \ + | openssl pkey -in /dev/stdin -pubin -outform DER \ | openssl dgst -sha256 | sed -rn "/^.*=\\s*/ {s///p;q}")" unverified_peer() { |