Git Product home page Git Product logo

Comments (6)

gregkare avatar gregkare commented on May 13, 2024

Do you need more information about this issue? Thanks in advance

from lua-resty-auto-ssl.

GUI avatar GUI commented on May 13, 2024

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.

gregkare avatar gregkare commented on May 13, 2024

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.

domahub avatar domahub commented on May 13, 2024

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.

bryanus avatar bryanus commented on May 13, 2024

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.

kpagcha avatar kpagcha commented on May 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.