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

obtain instead of renew cert if it does not exist in storage #221

Merged
merged 2 commits into from
Mar 21, 2023

Conversation

shitz
Copy link
Contributor

@shitz shitz commented Mar 18, 2023

This is a proposed fix for the issue reported in #220.

Instead of always renewing the certificate, we first check if the corresponding resources still exist in the storage and if not use the "obtain" instead of the "renew" flow.

Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh awesome. This is an elegant fix and probably how I would do it. Thanks for the patch!

@mholt mholt merged commit 6b92945 into caddyserver:master Mar 21, 2023
@mholt mholt added the bug Something isn't working label Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants