diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2020-12-10 14:28:29 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2020-12-11 11:20:37 +0100 |
commit | 17b263c49df682fc45f0e50cceb01db4366ad9a7 (patch) | |
tree | 06f0d963294aa426deeebc046713263d90c6c072 /tests/tls-pin-fingerprint/t | |
parent | c011e17d4f238882686e3f0e59c444a1c53ac8e3 (diff) |
libinterimap: show the matching pinned SPKI in --debug mode.
Diffstat (limited to 'tests/tls-pin-fingerprint/t')
-rw-r--r-- | tests/tls-pin-fingerprint/t | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/tls-pin-fingerprint/t b/tests/tls-pin-fingerprint/t index d3830e2..6716833 100644 --- a/tests/tls-pin-fingerprint/t +++ b/tests/tls-pin-fingerprint/t @@ -28,7 +28,8 @@ check_mailbox_status "INBOX" with_remote_config <<-EOF SSL_fingerprint = $INVALID_FPR $PKEY_SHA256 EOF -interimap || error +interimap --debug || error +grep -Fx "remote: Peer certificate matches pinned SPKI digest sha256\$$PKEY_SHA256" <"$STDERR" || error # and now an invalid one @@ -60,13 +61,15 @@ grep -Fx "remote: ERROR: Can't initiate TLS/SSL handshake" <"$STDERR" || error with_remote_config <<-EOF SSL_fingerprint = sha256\$$PKEY_SHA256 $INVALID_FPR EOF -interimap || error +interimap --debug || error +grep -Fx "remote: Peer certificate matches pinned SPKI digest sha256\$$PKEY_SHA256" <"$STDERR" || error # invalid + valid with_remote_config <<-EOF SSL_fingerprint = $INVALID_FPR sha256\$$PKEY_SHA256 EOF -interimap || error +interimap --debug || error +grep -Fx "remote: Peer certificate matches pinned SPKI digest sha256\$$PKEY_SHA256" <"$STDERR" || error # vim: set filetype=sh : |