-
Notifications
You must be signed in to change notification settings - Fork 5
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
Check for cert expiry and don't update #12
Comments
Do you use the |
Hello @foorschtbar |
Maybe it's working and i am understanding it wrong. It just replaces the cert in Mikrotik again after container restart. Is that normal even if the cert is not expired?
|
Yes, you are right. The container doesn't check the deployed certificate and upload it on every start and after that via cron job periodically. Yes, that can be improved, but it need some time for a very low benefit. Feel free to open a PR to improve this behavior. |
Hello, Actually it's not a low benefit but an issue since i am getting rate limited. If i am working on my docker server or restart it too many times this will cause the acme ban. How do you want me to open the PR? Do you have any instructions?
|
Oh, yes you are right. I thought lego would be a little smarter with the run/renew procedure, but not (go-acme/lego#216). after 5 tries i also now blocked until tomorrow :D i will fix that later with an updated container image. |
That would be nice because this is really big issue getting the ban. Let me know i can test with different domain if you fix the issue. |
Thank you for fixing the issue. It's working perfectly now. |
Hello,
Thanks for this awesome docker project you have created. I was wondering if you can implement where the docker checks for the certificate validation and doesn't run the "Removing previous certificate and delete certificate file if the file exist on RouterOS...DONE" and "Validations succeeded; requesting certificate" step all the time if the container is restarted. It would be nice if it only ran it once the cert is expired and we can set a environment variable for this.
The text was updated successfully, but these errors were encountered: