Hi, I am having some issues with Certbot SSL certificates on a Debian VPS, I was wondering if someone could help me please.
First, I installed XMPP with Certbot using “webroot” since there was no actual webserver or page. This worked perfectly fine with no issues.
Then I’m trying to run Peertube on Nginx, but it says it can’t load and find the cert files, even though they are in the correct folder. I tried renewing the certbot files, but it didn’t help.
How do I transition these webroot cert files to Nginx cert files?
May 21 04:28:24 exampledomain systemd[1]: Started A high performance web server and a reverse proxy server.
May 21 05:39:44 exampledomain systemd[1]: Reloading A high performance web server and a reverse proxy server.
May 21 05:39:44 exampledomain nginx[58108]: nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/[exampledomain.to]/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/[exampledomain.to]/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
May 21 05:39:44 exampledomain systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
May 21 05:39:44 exampledomain systemd[1]: Reload failed for A high performance web server and a reverse proxy server.
May 21 05:43:04 exampledomain systemd[1]: Stopping A high performance web server and a reverse proxy server...
May 21 05:43:04 exampledomain systemd[1]: nginx.service: Succeeded.
May 21 05:43:04 exampledomain systemd[1]: Stopped A high performance web server and a reverse proxy server.
May 21 05:43:48 exampledomain systemd[1]: Starting A high performance web server and a reverse proxy server...
May 21 05:43:48 exampledomain nginx[58174]: nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/[exampledomain.to]/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/[exampledomain.to]/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
May 21 05:43:48 exampledomain nginx[58174]: nginx: configuration file /etc/nginx/nginx.conf test failed
May 21 05:43:48 exampledomain systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
May 21 05:43:48 exampledomain systemd[1]: nginx.service: Failed with result 'exit-code'.
May 21 05:43:48 exampledomain systemd[1]: Failed to start A high performance web server and a reverse proxy server.
May 21 05:43:48 exampledomain systemd[1]: nginx.service: Unit cannot be reloaded because it is inactive.
May 21 05:44:38 exampledomain systemd[1]: Starting A high performance web server and a reverse proxy server...
May 21 05:44:38 exampledomain nginx[58201]: nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/[exampledomain.to]/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/[exampledomain.to]/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
May 21 05:44:38 exampledomain nginx[58201]: nginx: configuration file /etc/nginx/nginx.conf test failed
May 21 05:44:38 exampledomain systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
May 21 05:44:38 exampledomain systemd[1]: nginx.service: Failed with result 'exit-code'.
May 21 05:44:38 exampledomain systemd[1]: Failed to start A high performance web server and a reverse proxy server.
May 21 05:50:58 exampledomain systemd[1]: Starting A high performance web server and a reverse proxy server...
May 21 05:50:58 exampledomain nginx[58289]: nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/exampledomain.to/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/exampledomain.to/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
May 21 05:50:58 exampledomain nginx[58289]: nginx: configuration file /etc/nginx/nginx.conf test failed
May 21 05:50:58 exampledomain systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
May 21 05:50:58 exampledomain systemd[1]: nginx.service: Failed with result 'exit-code'.
May 21 05:50:58 exampledomain systemd[1]: Failed to start A high performance web server and a reverse proxy server.
May 21 05:51:58 exampledomain systemd[1]: Starting A high performance web server and a reverse proxy server...
May 21 05:51:58 exampledomain nginx[58304]: nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/exampledomain.to/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/exampledomain.to/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
May 21 05:51:58 exampledomain nginx[58304]: nginx: configuration file /etc/nginx/nginx.conf test failed
May 21 05:51:58 exampledomain systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
May 21 05:51:58 exampledomain systemd[1]: nginx.service: Failed with result 'exit-code'.
May 21 05:51:58 exampledomain systemd[1]: Failed to start A high performance web server and a reverse proxy server.
May 24 01:46:13 exampledomain systemd[1]: Starting A high performance web server and a reverse proxy server...
May 24 01:46:13 exampledomain nginx[113680]: nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/exampledomain.to/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/exampledomain.to/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
May 24 01:46:13 exampledomain nginx[113680]: nginx: configuration file /etc/nginx/nginx.conf test failed
May 24 01:46:13 exampledomain systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
May 24 01:46:13 exampledomain systemd[1]: nginx.service: Failed with result 'exit-code'.
May 24 01:46:13 exampledomain systemd[1]: Failed to start A high performance web server and a reverse proxy server.