-
-
Notifications
You must be signed in to change notification settings - Fork 660
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tls_socket: more flexible pem file parsing (#2986)
- order of key and cert blocks no longer matters * add EC pem test, fixes #2906 * EOL fix for cross platform (win) support
- Loading branch information
Showing
7 changed files
with
180 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
-----BEGIN EC PARAMETERS----- | ||
BggqhkjOPQMBBw== | ||
-----END EC PARAMETERS----- | ||
-----BEGIN EC PRIVATE KEY----- | ||
MHcCAQEEIIDhiI5q6l7txfMJ6kIEYjK12EFcHLvDIkfWIwzdZBsloAoGCCqGSM49 | ||
AwEHoUQDQgAEZg2nHEFy9nquFPF3DQyQE28e/ytjXeb4nD/8U+L4KHKFtglaX3R4 | ||
uZ+5JcwfcDghpL4Z8h4ouUD/xqe957e2+g== | ||
-----END EC PRIVATE KEY----- | ||
-----BEGIN CERTIFICATE----- | ||
MIICaTCCAg+gAwIBAgIUEDa9VX16wCdo97WvIk7jyEBz1wQwCgYIKoZIzj0EAwIw | ||
gYkxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApXYXNoaW5ndG9uMRAwDgYDVQQHDAdT | ||
ZWF0dGxlMRQwEgYDVQQKDAtIYXJha2EgTWFpbDEXMBUGA1UEAwwObWFpbC5oYXJh | ||
a2EuaW8xJDAiBgkqhkiG9w0BCQEWFWhhcmFrYS5tYWlsQGdtYWlsLmNvbTAeFw0y | ||
MTEwMTQwNjQxMTlaFw0yMjEwMTQwNjQxMTlaMIGJMQswCQYDVQQGEwJVUzETMBEG | ||
A1UECAwKV2FzaGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEUMBIGA1UECgwLSGFy | ||
YWthIE1haWwxFzAVBgNVBAMMDm1haWwuaGFyYWthLmlvMSQwIgYJKoZIhvcNAQkB | ||
FhVoYXJha2EubWFpbEBnbWFpbC5jb20wWTATBgcqhkjOPQIBBggqhkjOPQMBBwNC | ||
AARmDaccQXL2eq4U8XcNDJATbx7/K2Nd5vicP/xT4vgocoW2CVpfdHi5n7klzB9w | ||
OCGkvhnyHii5QP/Gp73nt7b6o1MwUTAdBgNVHQ4EFgQU094ROMLHmLEspT4ZoCfX | ||
Rz0mR/YwHwYDVR0jBBgwFoAU094ROMLHmLEspT4ZoCfXRz0mR/YwDwYDVR0TAQH/ | ||
BAUwAwEB/zAKBggqhkjOPQQDAgNIADBFAiEAsmshzvMDjmYDHyGRrKdMmsnnESFd | ||
GMtfRXYIv0AZe7ICIGD2Sta9LL0zZ44ARGXhh+sPjxd78I/+0FdIPsofr2I+ | ||
-----END CERTIFICATE----- |
Empty file.
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,43 @@ | ||
|
||
key = tls_key.pem | ||
cert = tls_cert.pem | ||
dhparam = dhparams.pem | ||
|
||
ciphers = ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384 | ||
minVersion = TLSv1 | ||
rejectUnauthorized=false | ||
requestCert=true | ||
honorCipherOrder=true | ||
requireAuthorized[]=2465 | ||
requireAuthorized[]=2587 | ||
|
||
no_starttls_ports[]=2525 | ||
|
||
[redis] | ||
; options in this block require redis to be available. | ||
|
||
; remember when a remote fails STARTTLS. The next time they connect, | ||
; don't offer STARTTLS option (so message gets delivered). | ||
; pro: increases mail reliability | ||
; con: reduces security | ||
; default: false | ||
; disable_for_failed_hosts=true | ||
|
||
|
||
; no_tls_hosts - disable TLS for servers with broken TLS. | ||
[no_tls_hosts] | ||
; 127.0.0.1 | ||
; 192.168.1.1 | ||
; 172.16.0.0/16 | ||
|
||
[outbound] | ||
key = outbound_tls_key.pem | ||
cert = outbound_tls_cert.pem | ||
dhparam = dhparams.pem | ||
ciphers = ECDHE-RSA-AES256-GCM-SHA384 | ||
minVersion = TLSv1 | ||
rejectUnauthorized=false | ||
requestCert=false | ||
honorCipherOrder=false | ||
force_tls_hosts[]=first.example.com | ||
force_tls_hosts[]=second.example.net |
File renamed without changes.
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