GithubHelp home page GithubHelp logo

More info on LE auto renew about fritz-tls HOT 6 CLOSED

tisba avatar tisba commented on July 3, 2024
More info on LE auto renew

from fritz-tls.

Comments (6)

tisba avatar tisba commented on July 3, 2024

Hey! I do run it via cron for some FRITZ!Box I "manage". I guess it could be a bit smarter, like running once a week/day and check the remaining validity of the certificate or something.

Can you elaborate a bit more on your question?

from fritz-tls.

valentinocossar avatar valentinocossar commented on July 3, 2024

Yes, sorry, do you run it locally on your Mac/PC, or do you have a server that handles this for you? I have a MacBook Pro, what happens if the MacBook Pro is not at home when the renewal cron runs? LE allows renewal 30 days before the cert expire date, I imagine that the only problem is if the computer that runs the renewal cron is not at home at least one day before the cert expire date. I'm right?

from fritz-tls.

tisba avatar tisba commented on July 3, 2024

Actually, the codes does not even try to do a renew, see here:

fritz-tls/acme.go

Lines 80 to 83 in 61c6f7f

cert, err := client.Certificate.Obtain(request)
if err != nil {
return nil, err
}

From what I understand and also got confirmed here there is no real difference from obtaining a "new" certificate from renewing.

I do have a Mac Mini running at home, before that I used a Raspberry Pi - that was actually the reason I added ARM binaries :)

For your case, if you don't have a "stationary" system running, we could add an option, that inspects the current certificates and only tries to obtain a new one if the current one is approaching its expire date. If that's in place, it should be rather simple to have fritz-tls run via launchd on a schedule once a day or week.

from fritz-tls.

valentinocossar avatar valentinocossar commented on July 3, 2024

@tisba super, this would be great!

from fritz-tls.

tisba avatar tisba commented on July 3, 2024

Hey @valentinocossar 👋 Not sure if this is still relevant for you, but v0.14.0 now does not renew if the found certificate is still valid (not expired and for the correct domain). So you can run it daily for example and it will only renew once every 30 days.

from fritz-tls.

valentinocossar avatar valentinocossar commented on July 3, 2024

Hi @tisba, thank you! 🎉

from fritz-tls.

Related Issues (5)

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.