Skip to content

Instantly share code, notes, and snippets.

@p4prawin
Created May 19, 2022 05:54
Show Gist options
  • Save p4prawin/8bcdb7de31144b632599d37c17c5c6a8 to your computer and use it in GitHub Desktop.
Save p4prawin/8bcdb7de31144b632599d37c17c5c6a8 to your computer and use it in GitHub Desktop.
ISSUE:
# nginx -t
nginx: [emerg] BIO_new_file("/etc/ssl/certs/dhparam.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/ssl/certs/dhparam.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed
SOLUTION:
# mkdir -p /etc/ssl/certs/
# openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048;
# /etc/init.d/nginx start
# nginx -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment