Generate SSL dhparam file with openssl

From lxadm | Linux administration tips, tutorials, HOWTOs and articles
Jump to: navigation, search

To generate your dhparam file, run the following command in the terminal (note it may take a few minutes to complete):

openssl dhparam -out /etc/nginx/ssl/dhparam-2048.pem 2048

Include it in nginx config within server { ... } with:

ssl_dhparam ssl/dhparam-2048.pem;