nginx emerg cannot load certificate etcletsencryptlivecnbolingcomfullchainpem BIO_new_file failed SSL error02001002system libraryfopenNo such file or directoryfopenetcletsencryptlivecnbolingcomfullcha
This error message indicates that Nginx is unable to load the SSL certificate for your domain because it cannot find the fullchain.pem file at the specified location (/etc/letsencrypt/live/cnboling.com/fullchain.pem).
To resolve this issue, you can try the following steps:
-
Check if the file exists at the specified location by running the following command:
ls /etc/letsencrypt/live/cnboling.com/If the file does not exist, it means that the SSL certificate has not been installed properly. You can try reinstalling the certificate using the Let's Encrypt client or another SSL certificate provider.
-
If the file exists, make sure that the file permissions are set correctly so that Nginx can read the file. You can set the permissions using the following command:
sudo chmod 644 /etc/letsencrypt/live/cnboling.com/fullchain.pem -
Check if the SSL certificate configuration in your Nginx configuration file (/www/server/nginx/conf/nginx.conf) is correct. Make sure that the file path and file names match the actual location of the SSL certificate on your server.
-
Once you have made the necessary changes, save the configuration file and run the following command to test the configuration:
sudo nginx -tIf the test is successful, restart Nginx to apply the changes:
sudo systemctl restart nginx
If you are still encountering issues, you may want to check Nginx's error logs for more information on the specific problem.
原文地址: https://www.cveoy.top/t/topic/bQHK 著作权归作者所有。请勿转载和采集!