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"