Comments (6)
Do you need more information about this issue? Thanks in advance
from lua-resty-auto-ssl.
Sorry for the delay. The process you outlined seems like it should work, so I'm not sure why you're still getting the old certificates. If /etc/resty-auto-ssl/letsencrypt/certs/$domain/privkey.pem
is changing contents, then it would seems strange for /etc/resty-auto-ssl/letsencrypt/certs/$domain/cert.pem
to remain the same.
I haven't had a chance to try and reproduce this, but as a first step, you might try enable nginx debug logging (error_log /path/to/error.log debug
), and try to trigger this forced renewal again. Nginx's debug log will return a ton of output, but if you look for the line starting with auto-ssl: dehydrated output:
that should show the dehydrated script's raw output, which might help show what's going on with the renewal.
from lua-resty-auto-ssl.
I finally took some time to try this again with the debug log. There's nothing out of the ordinary in the dehydrated log. The cert files are actually different, but the cert's validity contains the same dates, so I thought they were the same. It looks like Let's Encrypt is returning a new cert with the existing validity dates (when the cert doesn't need to be renewed).
I'm closing this one, thanks
from lua-resty-auto-ssl.
Sorry to post on a closed topic, but if I am not using Redis, would simply deleting the /etc/resty-auto-ssl/letsencrypt/certs/$domain
directory work in forcing a new certificate? For testing purposes, I'd like to test the domain but I only have one test domain to work with, so I'd need to delete any previous certificates to try to dynamically create one again.
from lua-resty-auto-ssl.
Sorry to post on a closed topic, but if I am not using Redis, would simply deleting the
/etc/resty-auto-ssl/letsencrypt/certs/$domain
directory work in forcing a new certificate? For testing purposes, I'd like to test the domain but I only have one test domain to work with, so I'd need to delete any previous certificates to try to dynamically create one again.
You would need to also delete the domain's files in /etc/resty-auto-ssl/storage, then restart your server to purge the cert from its cache.
from lua-resty-auto-ssl.
I've had times where even after restarting the server, the expired cached cert would be served. How can I delete cached certs manually?
from lua-resty-auto-ssl.
Related Issues (20)
- [lua] ssl_certificate.lua:77: issue_cert(): auto-ssl: failed to obtain lock: /etc/resty-auto-ssl/storage/file/test.karthickselvam.com%3Aissue_cert_lock: No such file or directory, context: ssl_certificate_by_lua*,
- How to determine if self signed cert is being used HOT 8
- Is it possible to change the LE CA to a custom CA? HOT 1
- Working with a Third-Party ACME Provider and Request is Incorrect HOT 2
- How to pass username in auth option for redis.
- Does it support zerossl
- Test against newer versions of OpenResty HOT 5
- Certificates with multiple accounts HOT 1
- How to explicitly delete a domain/certificate? HOT 1
- Proxy Protocol v2 not supported
- How change allow_domains to file separate
- Security issue
- New Release? HOT 6
- Migrate letsencrypt certifcates on disk to lua-resty-open-ssl HOT 2
- Failing to use the 'has_certificate' method HOT 1
- Renewal fails with error: auto-ssl: failed to obtain lock: closed, context: ngx.timer
- Move Out Renewal Jobs to Another Server HOT 1
- Let's Encrypt response on renewal: Order's status ("valid") is not acceptable for finalization
- Update Dehydrated to 0.7.1+ to fix issuance with Let's Encrypt
- Cannot change the renewal interval
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lua-resty-auto-ssl.