summaryrefslogtreecommitdiffstats
path: root/roles/common/files/usr/local/bin/gendhparam.sh
blob: a94175a355f43b7134644abaf5eac070f439ad3a (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

set -ue
PATH=/usr/bin:/bin

out="$1"
bits="${2:-2048}"

install --mode=0644 /dev/null "$out"
openssl dhparam -rand /dev/urandom "$bits" >"$out"