aboutsummaryrefslogtreecommitdiff
path: root/acmeman
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2019-12-23 15:12:31 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2019-12-23 15:12:31 +0200
commit438e1817a21dd79024cdf33ecc630c5bb0dc8cf0 (patch)
tree5f4cb20e89764e5ad294a50af5f2e7d538ce3bda /acmeman
parent4185f852471106b55ba430b81a1c5f09decdf16e (diff)
downloadacmeman-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-xacmeman44
1 files changed, 44 insertions, 0 deletions
diff --git a/acmeman b/acmeman
index 7ab46bb..92fdc55 100755
--- a/acmeman
+++ b/acmeman
@@ -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>]>

Return to:

Send suggestions and report system problems to the System administrator.