Переглянути джерело

Create Diffie Helman parameters system wide

Emmanuel Bouthenot 10 роки тому
батько
коміт
26b202df45
2 змінених файлів з 5 додано та 6 видалено
  1. 5 0
      roles/common/tasks/security.yml
  2. 0 6
      roles/common/tasks/smtp.yml

+ 5 - 0
roles/common/tasks/security.yml

@@ -84,3 +84,8 @@
   notify:
       - Remount /proc
   when: with_hideproc and hideproc_gid != ''
+
+- name: Create Diffie-Helman parameters
+  command: openssl dhparam -2 -out /etc/ssl/private/dh{{ item }}.pem {{ item }} creates=/etc/ssl/private/dh{{ item }}.pem
+  with_items:
+    - 2048

+ 0 - 6
roles/common/tasks/smtp.yml

@@ -11,12 +11,6 @@
     - Regenerate aliases cache
   when: with_postfix or with_mail_aliases
 
-- name: Create Diffie-Helman parameters (2048 bits) for postfix
-  command: openssl dhparam -2 -out /etc/ssl/private/dh2048.pem 2048 creates=/etc/ssl/private/dh2048.pem
-  notify:
-    - Restart postfix
-  when: with_postfix
-
 - name: Install postfix main configuration
   template: src=postfix/main.cf.j2 dest=/etc/postfix/main.cf owner=root group=root mode=0644
   notify: