Search K
Appearance
Appearance
This hook is executed after the periodic ACME system checks for TLS certificates have finished. The periodic task issues certificates for new domains and subdomains or renews existing certificates.
Hook environment variables:
| Name | Description | Example |
|---|---|---|
${renewed} | Number of new TLS certificates successfully issued. | 15 |
${failed} | Number of failed TLS certificate issue operations. | 0 |
This hook is executed when a new certificate for a user-owned domain is installed or renewed. A single domain can have multiple certificates (for domain pointers, domain aliases, subdomains, etc.). This hook will be executed once for every updated certificate file.
This hook can be useful for syncing user-owned certificates with some external services.
The example below shows the certificate for alias.net, a domain alias of example.com.
Hook environment variables:
| Name | Description | Example |
|---|---|---|
${username} | Account UNIX username. | john |
${domain} | Domain name this certificate belongs to. | example.com |
${cert_id} | Internal certificate identifier, used in API requests to act on a specific certificate. | alias.net |
${dns_names} | Space-separated list of DNS names this certificate covers. | alias.net *.alias.net |
${key_file_path} | Full path to the private key file. | /usr/local/directadmin/data/users/john/domains/alias.net.key |
${cert_file_path} | Full path to the certificate file. | /usr/local/directadmin/data/users/john/domains/alias.net.cert |
${chain_file_path} | Full path to the certificate chain file. | /usr/local/directadmin/data/users/john/domains/alias.net.cacert |
These custom scripts are used for before/after calls to letsencrypt.sh.
The hook letsencrypt_post.sh also has:
DEPRECATED: DirectAdmin 1.712 introduces a successor hook domain_tls_cert_save_post.sh instead.
These hooks are called before/after an SSL is saved.