The cert-enroll script handles the initial enrollment of an X.509 host certificate with a PKI server via the EST or SCEP protocols. Run as a systemd timer or via a crontab entry the script daily checks the expiration date of the host certificate. When a given deadline is reached, the host certificate is automatically renewed via EST or SCEP re-enrollment based on the possession of the old private key and the matching certificate.
13 lines
268 B
SYSTEMD
13 lines
268 B
SYSTEMD
[Unit]
|
|
Description=daily check of the remaining X.509 certificate lifetime
|
|
Documentation=man:cert-enroll(8)
|
|
|
|
[Timer]
|
|
# The cert-enroll script should be run once a day.
|
|
OnCalendar=*-*-* 02:00:00
|
|
RandomizedDelaySec=7200
|
|
Persistent=true
|
|
|
|
[Install]
|
|
WantedBy=timers.target
|