View Source Certmgr (zerossl v1.1.0)

Manager of the status of the certificate. This genserver maintains a timer to renew the certificate one day ahead of expiration.

If a certificate is not found in path, it is immediately generated.

Additionally, by specifying an :update_handler in the :zerossl configuration it's possible for an application to get notified about certificate generation/renewal.

Summary

Functions

Childspec of Certmgr genserver

Manage the certificate renewal by checking it's not_before and not_after Validities.

Read key and certificate from file, or raise an error if it does not find them

Write key and certificate to the files specified by the config

Functions

Childspec of Certmgr genserver

@spec manage_cert_renewal() :: :ok

Manage the certificate renewal by checking it's not_before and not_after Validities.

Every time the certificate has less than one day of validity, a renewal is issued. Otherwise a timer is set to wait until the moment such last day of validity is reached, to trigger the renewal again.

Read key and certificate from file, or raise an error if it does not find them

Write key and certificate to the files specified by the config