#!/bin/bash

if [ "$1" == "SURE" ]; then

	CHRBIN=/usr/sbin/chroot
	CHRDIR=/chroot/proxyd
	DHPARAM=$CHRDIR/etc/nginx/ssl/dhparam.pem

	openssl dhparam -out $DHPARAM 2048

else
	echo "Usage: reset-nginx-dhparam [SURE]"
	exit 3
fi
