1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

Set up test CA and valid signed cert by that CA.

Also require valid cert for host 'valid'.
This commit is contained in:
Jacob Hoffman-Andrews
2014-06-11 11:45:28 -04:00
parent 21e841fd13
commit 0c4e332811
3 changed files with 4 additions and 3 deletions

View File

@@ -1 +1 @@
#valid-example-recipient.com encrypt protocols=TLSv1.1
valid-example-recipient.com secure match=valid-example-recipient.com:.valid-example-recipient.com

View File

@@ -43,3 +43,4 @@ smtp_tls_policy_maps = texthash:/etc/postfix/tls_policy
smtp_tls_loglevel = 1
smtp_tls_security_level = may
smtp_tls_CAfile = /etc/certificates/ca.crt

View File

@@ -18,8 +18,6 @@ append_dot_mydomain = no
readme_directory = no
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
@@ -44,3 +42,5 @@ smtpd_tls_received_header = yes
#STARTTLS EVERYWHERE MAGIC STARTS HERE
smtp_tls_policy_maps = texthash:/etc/postfix/tls_policy
smtpd_tls_cert_file=/etc/certificates/valid.crt
smtpd_tls_key_file=/etc/certificates/valid.key