Merge pull request #88 from ecobytes/dhparam
Make OpenSSL use less computing power, closes #87
This commit is contained in:
@@ -55,5 +55,5 @@ class Nginx(base.Installer):
|
|||||||
system.add_user_to_group(user, group)
|
system.add_user_to_group(user, group)
|
||||||
|
|
||||||
if not os.path.exists("{}/dhparam.pem".format(self.config_dir)):
|
if not os.path.exists("{}/dhparam.pem".format(self.config_dir)):
|
||||||
cmd = "openssl dhparam -out dhparam.pem 4096"
|
cmd = "openssl dhparam -dsaparam -out dhparam.pem 4096"
|
||||||
utils.exec_cmd(cmd, cwd=self.config_dir)
|
utils.exec_cmd(cmd, cwd=self.config_dir)
|
||||||
|
|||||||
@@ -85,5 +85,5 @@ class Postfix(base.Installer):
|
|||||||
|
|
||||||
# Generate EDH parameters
|
# Generate EDH parameters
|
||||||
if not os.path.exists("{}/dh2048.pem".format(self.config_dir)):
|
if not os.path.exists("{}/dh2048.pem".format(self.config_dir)):
|
||||||
cmd = "openssl dhparam -out dh2048.pem 2048"
|
cmd = "openssl dhparam -dsaparam -out dh2048.pem 2048"
|
||||||
utils.exec_cmd(cmd, cwd=self.config_dir)
|
utils.exec_cmd(cmd, cwd=self.config_dir)
|
||||||
|
|||||||
Reference in New Issue
Block a user