diff options
author | Guilhem Moulin <guilhem@debian.org> | 2025-04-25 17:59:57 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2025-04-26 18:03:03 +0200 |
commit | 66aeda7f653cfb72731fe7ff2925d7291158500f (patch) | |
tree | c00ab59def64caace0cbe7a3c747f18f71f6649b /tests/tls-pin-fingerprint | |
parent | 8f11b2625b98831a591a73c8928d62c1df11aadb (diff) |
Port tests and documentation to Dovecot 2.4.
See https://doc.dovecot.org/main/installation/upgrade/2.3-to-2.4.html .
Diffstat (limited to 'tests/tls-pin-fingerprint')
-rw-r--r-- | tests/tls-pin-fingerprint/t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tls-pin-fingerprint/t b/tests/tls-pin-fingerprint/t index 6c045a1..679eaa4 100644 --- a/tests/tls-pin-fingerprint/t +++ b/tests/tls-pin-fingerprint/t @@ -1,5 +1,5 @@ -PKEY_SHA256="$(doveconf -c "$HOME_remote/.dovecot/config" -hx ssl_cert \ - | openssl x509 -in /dev/stdin -pubkey \ +ssl_server_cert_file="$(doveconf -c "$HOME_remote/.dovecot/config" -hx ssl_server/cert_file)" +PKEY_SHA256="$(openssl x509 -in "$ssl_server_cert_file" -pubkey \ | openssl pkey -in /dev/stdin -pubin -outform DER \ | openssl dgst -sha256 | sed -rn "/^.*=\\s*/ {s///p;q}")" INVALID_FPR="sha256\$deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef" |