From: Silvio Rhatto Date: Sat, 23 May 2015 15:01:15 +0000 (-0300) Subject: Use ssl::dhparams X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=9a41c103196507a348b6edf12669a903c872d235;p=puppet-nginx.git Use ssl::dhparams --- diff --git a/manifests/init.pp b/manifests/init.pp index dbbf4f4..ed6b3db 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -20,11 +20,7 @@ class nginx inherits nginx::base { include ssl # See https://weakdh.org/ - exec { 'openssl-nginx-gendh-2048': - command => 'openssl dhparam -out /etc/ssl/private/dhparams.pem 2048', - user => root, - group => root, - creates => '/etc/ssl/private/dh_2048.pem', + ssl::dhparams { 'openssl-nginx-gendh-2048': notify => Service['nginx'], }