소스 검색

Generate 2048 DH group and add it to Postfix

Sven Neuhaus 8 년 전
부모
커밋
d59c5eff05
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 4
    0
      roles/common/tasks/ssl.yml
  2. 1
    1
      roles/mailserver/templates/etc_postfix_main.cf.j2

+ 4
- 0
roles/common/tasks/ssl.yml 파일 보기

@@ -14,6 +14,10 @@
14 14
 - name: Set permissions on combined public cert
15 15
   file: name=/etc/ssl/certs/wildcard_combined.pem mode=644
16 16
 
17
+- name: Create strong Diffie-Hellman group
18
+  command: openssl dhparam -out /etc/ssl/private/dhparam2048.pem 2048
19
+    creates=/etc/ssl/private/dhparam2048.pem
20
+
17 21
 - name: Enable Apache SSL module
18 22
   command: a2enmod ssl creates=/etc/apache2/mods-enabled/ssl.load
19 23
 

+ 1
- 1
roles/mailserver/templates/etc_postfix_main.cf.j2 파일 보기

@@ -51,7 +51,7 @@ smtp_tls_note_starttls_offer = yes
51 51
 smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
52 52
 # http://www.postfix.org/FORWARD_SECRECY_README.html
53 53
 smtp_tls_ciphers = medium
54
-
54
+smtpd_tls_dh1024_param_file = /etc/ssl/private/dhparam2048.pem
55 55
 
56 56
 smtpd_sasl_type = dovecot
57 57
 smtpd_sasl_path = private/auth

Loading…
취소
저장