This commit is contained in:
Robin Raymond 2018-02-23 14:56:28 +01:00
parent a3043b2242
commit 5d169c3ef2

View file

@ -41,9 +41,13 @@ let
createDhParameterFile = createDhParameterFile =
'' ''
# Create a dh parameter file # Create a dh parameter file
if [ ! -f "''${cfg.certificateDirectory}/dh.pem" ]
then
mkdir -p "${cfg.certificateDirectory}"
${pkgs.openssl}/bin/openssl \ ${pkgs.openssl}/bin/openssl \
dhparam ${builtins.toString cfg.dhParamBitLength} \ dhparam ${builtins.toString cfg.dhParamBitLength} \
> "${cfg.certificateDirectory}/dh.pem" > "${cfg.certificateDirectory}/dh.pem"
fi
''; '';
createDomainDkimCert = dom: createDomainDkimCert = dom: