#!/bin/bash
BITS=2048;
if [[ ! -z "$1" ]]; then
BITS=$1;
fi
sudo touch /etc/nginx/dhparams.pem
sudo chmod 700 /etc/nginx/dhparams.pem
sudo openssl dhparam -out /etc/nginx/dhparams.pem $BITS