Comments (6)
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.
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.
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.
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.
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.
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)
- Intermediate certificate required. Unable to get issuer certificate. HOT 6
- RFC8823: acme4j response does not match CA expectation HOT 8
- [Feature request / acme4j-smime] Add support for S/MIME validation HOT 16
- Create order failing with AcmeServerException without any exception message HOT 2
- Getting Unable to get local issuer certificate HOT 3
- Android: order is valid however certificate chain is not correctly downloaded HOT 19
- Allow to set a complete X500Name to CSRBuilder in addition to the single set-methods HOT 5
- [Feature request / acme4j] Allow to access delegations HOT 1
- Remove service loader mechanism HOT 3
- Did you find any provider for RFC8823 support / email-reply-00 challenges? HOT 4
- The challenge status is always "INVALID" HOT 5
- The challenge status was always "INVALID" HOT 13
- http://${domain}/.well-known/acme-challenge/${token}
- acme4j example is creating zero- length crt files HOT 10
- preferred-chain attribute, for alternate chains HOT 2
- Can only parse traditional files HOT 2
- EAB HMAC keys with arbitrary lengths HOT 5
- CVE-2023-33201 from Bouncy Castle HOT 8
- add utils to do pre validation or help
- How to check if certificate needs renewal without ordering a new one? HOT 8
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 acme4j.