Skip to content

Instantly share code, notes, and snippets.

@WillSquire
Last active February 21, 2018 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WillSquire/ba9528655402e43edaa59c7241e4338a to your computer and use it in GitHub Desktop.
Save WillSquire/ba9528655402e43edaa59c7241e4338a to your computer and use it in GitHub Desktop.
Move all certificates from one system to another

Extract /etc/letsencrypt to tar file

On the new system, remove the current certificates and config (if applicable) with:

sudo rm -r /etc/letsencrypt

Make a new folder with:

sudo mkdir /etc/letsencrypt

Copy the contents of the tar directly into the folder (this will preserve symlinks, cp doesn't):

sudo tar -xvf letsencrypt.tar -C /etc/letsencrypt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment