summaryrefslogtreecommitdiffstats
path: root/roles/common/files/usr/local/bin/gendhparam.sh
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2016-05-22 17:34:56 +0200
committerGuilhem Moulin <guilhem@fripost.org>2016-05-22 17:53:59 +0200
commit0ee5bf050a9a673d61485426ce62c8efcbb7bcc6 (patch)
tree44ed4d91860ffca9e70e260a2aecd96687ad1a25 /roles/common/files/usr/local/bin/gendhparam.sh
parent8cf4032ecec5b9f58d829e89f231179170432539 (diff)
genkeypair, gendhparam: use -rand /dev/urandom when generating keys or DH parameters.
Diffstat (limited to 'roles/common/files/usr/local/bin/gendhparam.sh')
-rwxr-xr-xroles/common/files/usr/local/bin/gendhparam.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/common/files/usr/local/bin/gendhparam.sh b/roles/common/files/usr/local/bin/gendhparam.sh
index a82a8a5..a94175a 100755
--- a/roles/common/files/usr/local/bin/gendhparam.sh
+++ b/roles/common/files/usr/local/bin/gendhparam.sh
@@ -7,4 +7,4 @@ out="$1"
bits="${2:-2048}"
install --mode=0644 /dev/null "$out"
-openssl dhparam "$bits" >"$out"
+openssl dhparam -rand /dev/urandom "$bits" >"$out"