check certificates for expiration, and renew if needed
depends on:
small set of utilities to check certificate expiration and, if necesary, request a new certificate
expects certain conventions as set forth in the comments
export service_username='certfetcher'
useradd --system --user-group --shell /bin/bash --create-home --home "/var/lib/${service_username}" --comment 'pki certificate fetcher' "${service_username}"
unset service_username
follow the process/steps outlined in initial_setup/initial_setup-root for environment prep as root
follow the process/steps outlined in initial_setup/initial_setup-service_user for environment prep as the service user
for creation/request of the initial certificate, use gen_csr and req_cert
for sample web server config, see initial_setup/example_config-httpd.
for sample crontab entry, see initial_setup/sample_crontab. this should be placed in the service user’s crontab. not root.