From a0fc3ea12bdff5d2c8ffed5584dcde793541bd8d Mon Sep 17 00:00:00 2001 From: invario <67800603+invario@users.noreply.github.com> Date: Mon, 28 Jul 2025 12:20:00 -0400 Subject: [PATCH] Updated deployhooks (markdown) --- deployhooks.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deployhooks.md b/deployhooks.md index 1f57b87..dd1c550 100644 --- a/deployhooks.md +++ b/deployhooks.md @@ -1242,11 +1242,14 @@ If you generated a wildcard certificate and your certificate files are named _*. ## 39. Deploy to local directory via copy Deploy hook to copy certificates to specified directories and execute new command. Helpful for admins that want to simply deploy the certificates to a directory and then execute a custom script/command to perform necessary tasks. Especially useful when used in conjuction with the `multideploy` hook (in development). + +Setting `DEPLOY_LOCALCOPY_CERTKEY` and `DEPLOY_LOCALCOPY_CERTIFICATE` or `DEPLOY_LOCALCOPY_FULLCHAIN` to the same path will result in a combined PEM file being outputted. ``` -export DEPLOY_LOCALCOPY_CERTIFICATE="/path/to/target/cert.cer" export DEPLOY_LOCALCOPY_CERTKEY="/path/to/target/cert.key" +export DEPLOY_LOCALCOPY_CERTIFICATE="/path/to/target/cert.cer" export DEPLOY_LOCALCOPY_FULLCHAIN="/path/to/target/fullchain.cer" export DEPLOY_LOCALCOPY_CA="/path/to/target/ca.cer" +export DEPLOY_LOCALCOPY_PFX="/path/to/target/cert.pfx" export DEPLOY_LOCALCOPY_RELOADCMD="/path/to/reloadcmd.sh" acme.sh --deploy -d example.com --deploy-hook localcopy ```