Report this

What is the reason for this report?

How to change let'sencrypt in snapshot image?

Posted on December 12, 2017

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?



This textbox defaults to using Markdown to format your 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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.