Skip to content

Instantly share code, notes, and snippets.

@silkyland
Last active February 23, 2023 09:04
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 silkyland/22259465c70537b0e91ce1eda79dd303 to your computer and use it in GitHub Desktop.
Save silkyland/22259465c70537b0e91ce1eda79dd303 to your computer and use it in GitHub Desktop.
[Solved] CertStorageError: expected /etc/letsencrypt/live/example.com/cert.pem to be a symlink

[Solved] CertStorageError: expected /etc/letsencrypt/live/example.com/cert.pem to be a symlink

  rm -rf /etc/letsencrypt/live/{yourdomain.com}
  rm -rf /etc/archive/{yourdomain.com}
  rm -rf /etc/renewal/{yourdomain.com}

and

  certbot certonly --webroot -w /home/www/path -d yourdomain.com

If you use webinoly just use

  site example.com -ssl=on 

Don't forget to turn off ssl before delete them

@andyexeter
Copy link

@websharik Thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment