mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2024-12-28 16:06:12 +01:00
fixes #88
This commit is contained in:
parent
a3043b2242
commit
5d169c3ef2
1 changed files with 7 additions and 3 deletions
|
@ -41,9 +41,13 @@ let
|
||||||
createDhParameterFile =
|
createDhParameterFile =
|
||||||
''
|
''
|
||||||
# Create a dh parameter file
|
# Create a dh parameter file
|
||||||
${pkgs.openssl}/bin/openssl \
|
if [ ! -f "''${cfg.certificateDirectory}/dh.pem" ]
|
||||||
dhparam ${builtins.toString cfg.dhParamBitLength} \
|
then
|
||||||
> "${cfg.certificateDirectory}/dh.pem"
|
mkdir -p "${cfg.certificateDirectory}"
|
||||||
|
${pkgs.openssl}/bin/openssl \
|
||||||
|
dhparam ${builtins.toString cfg.dhParamBitLength} \
|
||||||
|
> "${cfg.certificateDirectory}/dh.pem"
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
createDomainDkimCert = dom:
|
createDomainDkimCert = dom:
|
||||||
|
|
Loading…
Reference in a new issue