Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to explicitly delete a domain/certificate? #275

Open
marcfowler opened this issue Mar 19, 2022 · 1 comment
Open

How to explicitly delete a domain/certificate? #275

marcfowler opened this issue Mar 19, 2022 · 1 comment

Comments

@marcfowler
Copy link

If I've issued a certificate for a domain in the past for example.com and now want to explicitly, manually delete this and doesn't attempt to renew etc, how can I do that?

Is it enough to simply delete all of the files matching storage/file/example.com*? Will just deleting those cause any issues?

Thanks in advance for any help!

@bryanus
Copy link

bryanus commented Jun 16, 2023

here's what I do:

If the domain was previously issued, but has long since expired, then delete the domain directory from certs directory /etc/resty-auto-ssl/letsencrypt/certs:

rm -fr www.domain.com

If you don't see a cert listed in certs, check the file storage directory:

cd etc/resty-auto-ssl/storage/file

Then delete the issued certs from the file storage directory:

rm -fr www.domain.com*

Finally, restart openresty and ping the domain in a browser to issue a new certificate:

sudo service openresty restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants