-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
report on entire peer chain in TLS transaction debug, not just the en…
…d cert Note that many of the tests have multiple copies of the same cert in their output. I think this is an issue w/ smtp-server.pl, not swaks. See #73
- Loading branch information
Showing
63 changed files
with
1,028 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
auto: REMOVE_FILE,CREATE_FILE,MUNGE,COMPARE_FILE %TESTID%.stdout %TESTID%.stderr %TESTID%.exits | ||
|
||
|
||
|
||
test action: CMD_CAPTURE %SWAKS% --to [email protected] --from [email protected] --helo hserver \ | ||
--tls \ | ||
--pipe '%TEST_SERVER% --silent --domain pipe \ | ||
--cert %CERTDIR%/signed-intermediate-full-chain.pem \ | ||
--key %CERTDIR%/signed-intermediate.example.com.key \ | ||
part-0000-connect-standard.txt \ | ||
part-0101-ehlo-all.txt \ | ||
part-0203-starttls-basic-verify.txt \ | ||
part-0105-ehlo-post-tls-info.txt \ | ||
part-1000-mail-basic.txt \ | ||
part-1100-rcpt-basic-accept.txt \ | ||
part-2500-data-accept-basic.txt \ | ||
part-3000-shutdown-accept.txt \ | ||
' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,22 @@ | |
<- 220 TLS go ahead | ||
=== TLS started with cipher VERSION:CIPHER:BITS | ||
=== TLS client certificate not requested and not sent | ||
=== TLS no local certificate set | ||
=== TLS peer DN="/C=US/ST=Indiana/O=Swaks Development (node.example.com, with-SAN)/CN=node.example.com/[email protected]" | ||
=== TLS no client certificate set | ||
=== TLS peer[0] DN="/C=US/ST=Indiana/O=Swaks Development (node.example.com, with-SAN)/CN=node.example.com/[email protected]" | ||
=== notBefore=2023-11-03T14:50:10Z | ||
=== notAfter=2033-09-11T14:50:10Z | ||
=== subjectAltName=[ DNS:node.example.com ] | ||
=== commonName=node.example.com | ||
=== TLS peer[1] DN="/C=US/ST=Indiana/O=Swaks Development (node.example.com, with-SAN)/CN=node.example.com/[email protected]" | ||
=== notBefore=2023-11-03T14:50:10Z | ||
=== notAfter=2033-09-11T14:50:10Z | ||
=== subjectAltName=[ DNS:node.example.com ] | ||
=== commonName=node.example.com | ||
=== TLS peer[2] DN="/C=US/ST=Indiana/O=Swaks Development (node.example.com, with-SAN)/CN=node.example.com/[email protected]" | ||
=== notBefore=2023-11-03T14:50:10Z | ||
=== notAfter=2033-09-11T14:50:10Z | ||
=== subjectAltName=[ DNS:node.example.com ] | ||
=== commonName=node.example.com | ||
=== TLS peer certificate failed CA verification, failed host verification (no host string available to verify) | ||
~> EHLO hserver | ||
<~ 250-SERVER Hello Server [1.1.1.1] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
*** TLS startup failed (connect(): error:CODE:SSL routines::sslv3 alert handshake failure) | ||
*** TLS startup failed (connect(): error:CODE:SSL routines::ssl/tls alert handshake failure) | ||
*** STARTTLS attempted but failed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,22 @@ | |
=== Connected to %TEST_SERVER% --silent --domain pipe part-0201-intialize-tls.txt part-0000-connect-standard.txt part-0101-ehlo-all.txt part-1000-mail-basic.txt part-1100-rcpt-basic-accept.txt part-2500-data-accept-basic.txt part-3000-shutdown-accept.txt . | ||
=== TLS started with cipher VERSION:CIPHER:BITS | ||
=== TLS client certificate not requested and not sent | ||
=== TLS no local certificate set | ||
=== TLS peer DN="/C=US/ST=Indiana/O=Swaks Development (node.example.com, with-SAN)/CN=node.example.com/[email protected]" | ||
=== TLS no client certificate set | ||
=== TLS peer[0] DN="/C=US/ST=Indiana/O=Swaks Development (node.example.com, with-SAN)/CN=node.example.com/[email protected]" | ||
=== notBefore=2023-11-03T14:50:10Z | ||
=== notAfter=2033-09-11T14:50:10Z | ||
=== subjectAltName=[ DNS:node.example.com ] | ||
=== commonName=node.example.com | ||
=== TLS peer[1] DN="/C=US/ST=Indiana/O=Swaks Development (node.example.com, with-SAN)/CN=node.example.com/[email protected]" | ||
=== notBefore=2023-11-03T14:50:10Z | ||
=== notAfter=2033-09-11T14:50:10Z | ||
=== subjectAltName=[ DNS:node.example.com ] | ||
=== commonName=node.example.com | ||
=== TLS peer[2] DN="/C=US/ST=Indiana/O=Swaks Development (node.example.com, with-SAN)/CN=node.example.com/[email protected]" | ||
=== notBefore=2023-11-03T14:50:10Z | ||
=== notAfter=2033-09-11T14:50:10Z | ||
=== subjectAltName=[ DNS:node.example.com ] | ||
=== commonName=node.example.com | ||
=== TLS peer certificate failed CA verification, failed host verification (no host string available to verify) | ||
<~ 220 SERVER ESMTP ready | ||
~> EHLO hserver | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
*** TLS startup failed (connect(): error:CODE:SSL routines::sslv3 alert handshake failure) | ||
*** TLS startup failed (connect(): error:CODE:SSL routines::ssl/tls alert handshake failure) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,26 @@ | |
<- 220 TLS go ahead | ||
=== TLS started with cipher VERSION:CIPHER:BITS | ||
=== TLS client certificate requested and sent | ||
=== TLS local DN="/C=US/ST=Indiana/O=Swaks Development (unsigned.example.com, with-SAN)/CN=unsigned.example.com/[email protected]" | ||
=== TLS peer DN="/C=US/ST=Indiana/O=Swaks Development (node.example.com, with-SAN)/CN=node.example.com/[email protected]" | ||
=== TLS client DN="/C=US/ST=Indiana/O=Swaks Development (unsigned.example.com, with-SAN)/CN=unsigned.example.com/[email protected]" | ||
=== notBefore=2023-11-03T14:51:48Z | ||
=== notAfter=2033-09-11T14:51:48Z | ||
=== subjectAltName=[ DNS:unsigned.example.com ] | ||
=== commonName=unsigned.example.com | ||
=== TLS peer[0] DN="/C=US/ST=Indiana/O=Swaks Development (node.example.com, with-SAN)/CN=node.example.com/[email protected]" | ||
=== notBefore=2023-11-03T14:50:10Z | ||
=== notAfter=2033-09-11T14:50:10Z | ||
=== subjectAltName=[ DNS:node.example.com ] | ||
=== commonName=node.example.com | ||
=== TLS peer[1] DN="/C=US/ST=Indiana/O=Swaks Development/CN=Swaks Root CA/[email protected]" | ||
=== notBefore=2020-12-13T15:28:17Z | ||
=== notAfter=2030-12-11T15:28:17Z | ||
=== subjectAltName= | ||
=== commonName=Swaks Root CA | ||
=== TLS peer[2] DN="/C=US/ST=Indiana/O=Swaks Development/CN=Swaks Root CA/[email protected]" | ||
=== notBefore=2020-12-13T15:28:17Z | ||
=== notAfter=2030-12-11T15:28:17Z | ||
=== subjectAltName= | ||
=== commonName=Swaks Root CA | ||
=== TLS peer certificate failed CA verification, failed host verification (no host string available to verify) | ||
~> EHLO hserver | ||
<~ 250-SERVER Hello Server [1.1.1.1] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,17 @@ | |
<- 220 TLS go ahead | ||
=== TLS started with cipher VERSION:CIPHER:BITS | ||
=== TLS client certificate not requested and not sent | ||
=== TLS no local certificate set | ||
=== TLS peer DN="/C=US/ST=Indiana/O=Swaks Development (signed.example.com, with-SAN)/CN=signed.example.com/[email protected]" | ||
=== TLS no client certificate set | ||
=== TLS peer[0] DN="/C=US/ST=Indiana/O=Swaks Development (signed.example.com, with-SAN)/CN=signed.example.com/[email protected]" | ||
=== notBefore=2023-11-03T14:50:47Z | ||
=== notAfter=2033-09-11T14:50:47Z | ||
=== subjectAltName=[ DNS:signed.example.com ] | ||
=== commonName=signed.example.com | ||
=== TLS peer[1] DN="/C=US/ST=Indiana/O=Swaks Development/CN=Swaks Root CA/[email protected]" | ||
=== notBefore=2020-12-13T15:28:17Z | ||
=== notAfter=2030-12-11T15:28:17Z | ||
=== subjectAltName= | ||
=== commonName=Swaks Root CA | ||
=== TLS peer certificate passed CA verification, failed host verification (no host string available to verify) | ||
~> QUIT | ||
<~ 221 SERVER closing connection | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,17 @@ | |
<- 220 TLS go ahead | ||
=== TLS started with cipher VERSION:CIPHER:BITS | ||
=== TLS client certificate not requested and not sent | ||
=== TLS no local certificate set | ||
=== TLS peer DN="/C=US/ST=Indiana/O=Swaks Development (signed.example.com, with-SAN)/CN=signed.example.com/[email protected]" | ||
=== TLS no client certificate set | ||
=== TLS peer[0] DN="/C=US/ST=Indiana/O=Swaks Development (signed.example.com, with-SAN)/CN=signed.example.com/[email protected]" | ||
=== notBefore=2023-11-03T14:50:47Z | ||
=== notAfter=2033-09-11T14:50:47Z | ||
=== subjectAltName=[ DNS:signed.example.com ] | ||
=== commonName=signed.example.com | ||
=== TLS peer[1] DN="/C=US/ST=Indiana/O=Swaks Development/CN=Swaks Root CA/[email protected]" | ||
=== notBefore=2020-12-13T15:28:17Z | ||
=== notAfter=2030-12-11T15:28:17Z | ||
=== subjectAltName= | ||
=== commonName=Swaks Root CA | ||
=== TLS peer certificate passed CA verification, failed host verification (no host string available to verify) | ||
~> QUIT | ||
<~ 221 SERVER closing connection | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,22 @@ | |
<- 220 TLS go ahead | ||
=== TLS started with cipher VERSION:CIPHER:BITS | ||
=== TLS client certificate not requested and not sent | ||
=== TLS no local certificate set | ||
=== TLS peer DN="/C=US/ST=Indiana/O=Swaks Development (node.example.com, with-SAN)/CN=node.example.com/[email protected]" | ||
=== TLS no client certificate set | ||
=== TLS peer[0] DN="/C=US/ST=Indiana/O=Swaks Development (node.example.com, with-SAN)/CN=node.example.com/[email protected]" | ||
=== notBefore=2023-11-03T14:50:10Z | ||
=== notAfter=2033-09-11T14:50:10Z | ||
=== subjectAltName=[ DNS:node.example.com ] | ||
=== commonName=node.example.com | ||
=== TLS peer[1] DN="/C=US/ST=Indiana/O=Swaks Development (node.example.com, with-SAN)/CN=node.example.com/[email protected]" | ||
=== notBefore=2023-11-03T14:50:10Z | ||
=== notAfter=2033-09-11T14:50:10Z | ||
=== subjectAltName=[ DNS:node.example.com ] | ||
=== commonName=node.example.com | ||
=== TLS peer[2] DN="/C=US/ST=Indiana/O=Swaks Development (node.example.com, with-SAN)/CN=node.example.com/[email protected]" | ||
=== notBefore=2023-11-03T14:50:10Z | ||
=== notAfter=2033-09-11T14:50:10Z | ||
=== subjectAltName=[ DNS:node.example.com ] | ||
=== commonName=node.example.com | ||
=== TLS peer certificate failed CA verification, failed host verification (no host string available to verify) | ||
=== -----BEGIN CERTIFICATE----- | ||
=== MIIEGjCCAwKgAwIBAgIUFQU5NT2EO9gtC5YP96Fa9d8vFVkwDQYJKoZIhvcNAQEL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,22 @@ | |
<- 220 TLS go ahead | ||
=== TLS started with cipher VERSION:CIPHER:BITS | ||
=== TLS client certificate not requested and not sent | ||
=== TLS no local certificate set | ||
=== TLS peer DN="/C=US/ST=Indiana/O=Swaks Development (node.example.com, with-SAN)/CN=node.example.com/[email protected]" | ||
=== TLS no client certificate set | ||
=== TLS peer[0] DN="/C=US/ST=Indiana/O=Swaks Development (node.example.com, with-SAN)/CN=node.example.com/[email protected]" | ||
=== notBefore=2023-11-03T14:50:10Z | ||
=== notAfter=2033-09-11T14:50:10Z | ||
=== subjectAltName=[ DNS:node.example.com ] | ||
=== commonName=node.example.com | ||
=== TLS peer[1] DN="/C=US/ST=Indiana/O=Swaks Development (node.example.com, with-SAN)/CN=node.example.com/[email protected]" | ||
=== notBefore=2023-11-03T14:50:10Z | ||
=== notAfter=2033-09-11T14:50:10Z | ||
=== subjectAltName=[ DNS:node.example.com ] | ||
=== commonName=node.example.com | ||
=== TLS peer[2] DN="/C=US/ST=Indiana/O=Swaks Development (node.example.com, with-SAN)/CN=node.example.com/[email protected]" | ||
=== notBefore=2023-11-03T14:50:10Z | ||
=== notAfter=2033-09-11T14:50:10Z | ||
=== subjectAltName=[ DNS:node.example.com ] | ||
=== commonName=node.example.com | ||
=== TLS peer certificate failed CA verification, failed host verification (no host string available to verify) | ||
~> EHLO hserver | ||
<~ 250-SERVER Hello Server [1.1.1.1] | ||
|
Oops, something went wrong.