How to change let'sencrypt in snapshot image?

December 12, 2017 817 views
Let's Encrypt Backups Ubuntu 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?

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.

Have another answer? Share your knowledge.