Skip to content

check certificates for expiration, and renew if needed

License

Notifications You must be signed in to change notification settings

junkb/cert_checker

Repository files navigation

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

  1. create a service/system account:
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
  1. make the necessary sudo adjustments to allow the service acount to reload/restart the appropriate services

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.

About

check certificates for expiration, and renew if needed

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages