Code Monkey home page Code Monkey logo

Comments (6)

shred avatar shred commented on May 18, 2024

There is no way to set renewal notifications.

You can read the expiry date of your certificate via X509Certificate.getNotAfter(), and renew the certificate a couple of days before expiry.

from acme4j.

BryceStevenWilley avatar BryceStevenWilley commented on May 18, 2024

Apologies for resurrecting a closed issue, but I've been looking into this recently. I'm assuming that you mean that acme4j has no way to set renewal notifications, but from what I understand, CA's like LetsEncrypt can and do send renewal notifications. And that using other ACME clients like certbot can get you those. I've been using acme4j for a few months, and the mailto: contact is attached to the account I'm using, but haven't received any emails from LetsEncrypt, and unfortunately it doesn't look like there's a way to test the notifications. I tried looking around for any differences between what certbot is doing with the supplied email and what acme4j is doing with it, but I couldn't tell, so I figured I might ask here.

from acme4j.

shred avatar shred commented on May 18, 2024

The ACME protocol itself does not provide means to set up renewal notifications via email. All you can do is adding contact addresses to your account, but the purpose is not specified any further.

Let's Encrypt says here that all you need to do is to give an email address at account registration, and they will automatically start to send you notifications 20 and 7 days before expiration.

I also had a look a the Boulder source code, and found an expiration-mailer tool there. It just uses the mailto: address that is connected to your account.

So all I can tell is that you should get the notification mails, unless you unsubscribed from them.

from acme4j.

shred avatar shred commented on May 18, 2024

I have just set an email address to my account via acme4j, and already got a renewal notification mail from Let's Encrypt a few hours later. So there's nothing more to do than to make sure that there is at least one valid mailto: address set in your account, and have at least one certificate that will expire in 20 days or less.

Have you checked the usual suspects (typo in email address, spam folder, etc)?

from acme4j.

BryceStevenWilley avatar BryceStevenWilley commented on May 18, 2024

Thanks for confirming this! It did take me until now to confirm that I got a reply, and it looks like my issue was that I had been using an account key that didn't yet have any email in the mailto: address, and I had been incorrectly assuming that AccountBuilder::addEmail() would add an email to an existing account, and it didn't seem to do that. Instead, I needed to get the already logged in account and call account.modify().addEmail().commit();

Sorry for the late reply, and thanks for the assistance!

from acme4j.

shred avatar shred commented on May 18, 2024

Thank you for your feedback! Yes, AccountBuilder will only create new accounts, but won't modify existing accounts. account.modify() is the correct way to change the email addresses of existing accounts. I will point that out in the documentation.

from acme4j.

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.