summaryrefslogtreecommitdiffstats
path: root/roles/common/files/usr/local/bin/gendhparam.sh
blob: a82a8a5f11cd45cae66408d3d090196ba71f7f15 (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 "$bits" >"$out"