I have LE properly installed and configured in my main server. However I created a copy of the website in a new server for testing new configurations. I have ca, crt, key, and pem files from LE in main server. How’s the proper way to reinstall LE to use those files?
First I added the repository: sudo add-apt-repository ppa:certbot/certbot
Then I installed certbot: sudo apt install python-certbot-nginx
Next thing, the output of ls /etc/letsencrypt is cli.ini.
So, how I manage to have all the default directories in /etc/letsencrypt to put my files in /live?
The problem here is that in the main server runs a VestaCP installation, which has LE directories in a complete mess in locations I don’t even dare to look
So what I’m trying here in the new server it’s to configure everything from scratch and then, when everything it’s up and running, then use it as the main server and delete the other.
If your new server isn’t VestaCP, you could just copy the private key and certificate to your new server (to any directory at all, doesn’t matter really) and configure nginx to use them.
Then once you switch the domains over to the new server, you can use Certbot to create a completely new set of certificates as required.