Can we use default Let's Encrypt location in Nginx config?


I was reviewing the official install docs for rocket chat as well as other tutorials online from Digital Ocean and both instruct that the Key and Certificate be copied to /etc/nginx/ so that we end up with the following:

ssl_certificate /etc/nginx/certificate.crt;
ssl_certificate_key /etc/nginx/certificate.key;

Can we not use the default location that Let’s Encrypt created when using cerbot to obtain a certificate? If not, why would this be an issue?

If there is an issue, won’t that mean that we’ll have to come back into the server and manually copy and paste this each time we have to renew? (I’m hoping to avoid that.)



You can change that path to what ever path you want. Including of course where certbot sticks your cert