How to change let'sencrypt in snapshot image?

Posted December 12, 2017 2.1k views
BackupsLet's EncryptUbuntu 16.04

I work in the droplet (Ubuntu 16) very well and made some setting. after I finish all things. I made a snapshot of my droplet. what I want is to reuse this droplet for another project just change SSL certificate (let’s encrypt).
How can I do it without harming the original certificate?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

You can take a snapshot of your Droplet, deploy a new one, remove all existing keys and certificates, then create another snapshot off of that. This way you have a preconfigured snapshot lacking any private files such as SSL keys.

Let’s Encrypt stores files in the following directories, so make sure any files in there are deleted:

  • /etc/letsencrypt/keys
  • /etc/letsencrypt/archive
  • /etc/letsencrypt/live

You might also want to look for configuration files in /etc/letsencrypt as well as any other subdirectories and see if you want to clear any of those too.