Question

How to change let'sencrypt in snapshot image?

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?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.