Cert update dates
-
Emails from where?
-
If you put your e-mail on the ACME key then Let's Encrypt (NOT pfSense/the firewall/etc) will send you an e-mail when it is close to expiring, but that only triggers if it's not renewed before the time they warn you.
Since the ACME package checks every day to see if it needs renewed, it gets renewed before that e-mail warning would fire off.
The firewall won't e-mail you anything about the certificates, but it makes entries in the main system log. If you have a central logging system you could have it flag those messages and alert you when things happen.
-
Hmm
letsencrypt has 90 days cycle, no ?
why then I see this (using the script by @Gertjan ):
/usr/local/pkg/acme/acme.sh --home /tmp/acme/XXXYYY/ --list Main_Domain KeyLength SAN_Domains Created Renew XXXYYY "" no Fri Jun 7 10:16:07 UTC 2019 Tue Aug 6 10:16:07 UTC 2019
renew in 60 days ?
Also you say "If you have a central logging system you could have it flag those messages and alert you when things happen."
Any example of you do to flag messages ?
Thx
-
@chudak said in Cert update dates:
letsencrypt has 90 days cycle, no ?
The certificates expire in 90 days.
@chudak said in Cert update dates:
renew in 60 days ?
It renews then so that if there is a failure, you have time to fix the problem.
@chudak said in Cert update dates:
Also you say "If you have a central logging system you could have it flag those messages and alert you when things happen."
Any example of you do to flag messages ?No, that's all up to your logging/alerting/NMS system.
-
-
@chudak said in Cert update dates:
renew in 60 days ?
Check your own settings of your cert : bottom of the page :
You see the last renewal date.
And the time - default 60 days - when it gets renewed.See my edit above how to implement a small shell script that sends a mail as an Action script.
-
Makes sense, changed to 90 days, and added the script to Certificate options Actions list (not sure if it will send email, but will be seeing in the logs for sure)
Thx!
-
Why would you want to wait until the certificate has already expired before you renew it?
Leave it at 60 and ignore it unless it fails to renew. The default settings are best.
-
Iโm trying to find best way to be remained to do some manual actions for one certificate that is being managed by acme.
For pfsense 60 days overlapping/advanced updates will work fine.
But I need to get some emails in order to copy new certificate to my other server. (need to see how further automate this process)
Thx all for suggestions and useful tips
-
Waiting for it to expire to get an e-mail from Let's Encrypt seems like an incredibly bad idea.
Next time, lead with what you are trying to accomplish. There are likely much better ways to achieve your ultimate goal without relying on hacks.
-
@jimp said in Cert update dates:
Waiting for it to expire to get an e-mail from Let's Encrypt seems like an incredibly bad idea.
Next time, lead with what you are trying to accomplish. There are likely much better ways to achieve your ultimate goal without relying on hacks.
Waiting for expansion sounds like extreme, there would be several emails.
โWe send the first notice at 20 days before your certificate expires, and more notices at 10 days and 1 day before it expires.โ
Thatโs what Iโm looking for - whatโs the better way?
-
Pretty sure you can make something like Nagios alert you if a certificate changes. Been a while since I looked. Certainly a log host can watch for certain events and do it, as has been mentioned.
-
@chudak said in Cert update dates:
not sure if it will send email
??
You test a script when you create it. If it works - then you 'activate' it by using it as an 'action'.
Never ever use a script automatically, that is, for example, by a cron script.
Test first. Check all the 'input' variables, that they are available at any time."90 days" is no good. If anything goes wrong, you'll find out when it it to late.
"Let's Enscrypts" advises themselves to renew after 60 days, which mans that you have 30 days to have a a look at it when something goes wrong. -
@Gertjan said in Cert update dates:
'activate' it by using it as an 'action'
where? Services/Acme/Certificate options: Edit/-> Action List ?
-
Yep, see my image above.
Hit the green Add button, and add it. -
@Gertjan said in Cert update dates:
Yep, see my image above.
Hit the green Add button, and add it.I did that, so I guess I will get an email on next renewal.
Thx
-
Hit the Renew button yourself right now. You'll see.
You are allowed to renew yourself, like 5 times a week.