Nginx SSL Configuration Issue With Conf

Created At: 2024-06-24 14:39:30 Updated At: 2024-06-24 14:39:30

The other day I was doing SSL configuration for my application and at the same time I placed the pem and key files in the correct location.

Everything I was doing, as I am used to do. But my SSL configuration was not taking effect. Every time I was saving it found the following error

The text format was like below

nginx: [emerg] cannot load certificate "/www/server/panel/vhost/cert/rulearn.dbestech.com/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/www/server/panel/vhost/cert/rulearn.dbestech.com/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file) nginx: configuration file /www/server/nginx/conf/nginx.conf test failed

After doing investing I found that I error in location of files. This means I gave a path name where nginx could find the files but it was wrong name due to spelling error.

So next time, you see issue like above make sure your path name to file's location is correct.

Comment

Add Reviews