diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2019-12-23 15:12:31 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2019-12-23 15:12:31 +0200 |
commit | 438e1817a21dd79024cdf33ecc630c5bb0dc8cf0 (patch) | |
tree | 5f4cb20e89764e5ad294a50af5f2e7d538ce3bda /acmeman | |
parent | 4185f852471106b55ba430b81a1c5f09decdf16e (diff) | |
download | acmeman-438e1817a21dd79024cdf33ecc630c5bb0dc8cf0.tar.gz acmeman-438e1817a21dd79024cdf33ecc630c5bb0dc8cf0.tar.bz2 |
Define envvars prior to running postrenew. Other improvements.
* Changes: Update.
* acmeman: Document changes.
* lib/App/Acmeman.pm: Version 3.02.90.
Pass information about renewed certificate to postrenew commands
in environment variables.
Remove created challenge files when no longer needed.
* lib/App/Acmeman/Config.pm (mangle): Improve error message.
Use "default" domain source by default.
* lib/App/Acmeman/Source/Apache.pm: Minor changes.
* lib/App/Acmeman/Source/Default.pm: New file. Source for the
"default" domain source.
Diffstat (limited to 'acmeman')
-rwxr-xr-x | acmeman | 44 |
1 files changed, 44 insertions, 0 deletions
@@ -384,6 +384,30 @@ server (or whatever server is using the certificates). If more than one B<postrenew> statements are defined, they will be run in sequence, in the same order as they appeared in the configuration file. +I<COMMAND> inherits the environment from the B<acmeman> process, with the +following additional variables: + +=over 8 + +=item ACMEMAN_CERTIFICATE_COUNT + +Total count of renewed certificate files. + +=item ACMEMAN_CERTIFICATE_FILE + +Whitespace-delimited list of renewed certificate files + +=item ACMEMAN_DOMAIN_NAME + +Whitespace-delimited list of renewed domain names (CNs). + +=item ACMEMAN_ALT_NAMES + +Whitespace-delimited list of alternative DNS names from the renewed +certificate files. + +=back + =item B<source=>I<NAME> [I<ARG>...] Defines the source of domain names. The I<NAME> parameter identifies the @@ -507,6 +531,26 @@ setting is used. Run I<CMD> after successful update. If not given, the B<core.postrenew> commands will be run. +I<CMD> is run in the environment inherited from the calling B<acmeman> +process with the following additional variables defined: + +=over 8 + +=item ACMEMAN_CERTIFICATE_FILE + +Name of the certificate file that was renewed. + +=item ACMEMAN_DOMAIN_NAME + +Domain name (CN) from the renewed certificate. + +=item ACMEMAN_ALT_NAMES + +Whitespace-delimited list of the alternative DNS names extracted from the +certificate. + +=back + =back =head2 B<[files I<ID>]> |