Nginx configuration test failed after changing SSL certificate

Created:

2016-11-16 13:03:22 UTC

Modified:

2017-08-08 13:10:34 UTC

3

Was this article helpful?


Have more questions?

Submit a request

Nginx configuration test failed after changing SSL certificate

Applicable to:

  • Plesk for Linux
  • Plesk 12.0 for Linux

Symptoms

Nginx configuration test failed after changing SSL certificate with the following error in /usr/local/psa/admin/logs/panel.log :

nginx: [emerg] BIO_new_file("/usr/local/psa/var/certificates/certwjFGVTD") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/usr/local/psa/var/certificates/certwjFGVTD','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed

Cause

SSL certificate changes are not applied to nginx configuration files.

Resolution

  1. Rebuild web server configuration files:

    # /usr/local/psa/admin/bin/httpdmng --reconfigure-server
  2. Check nginx configuration:

    # nginx -t
Have more questions? Submit a request
Please sign in to leave a comment.