Added #39 for new proposed 'localcopy' deploy-hook

master
invario 2025-05-28 12:51:41 -04:00
parent 81feb4b96d
commit 5772f72140
1 changed files with 13 additions and 1 deletions

@ -1238,4 +1238,16 @@ export DEPLOY_KEMP_TOKEN="<Kemp API Token>"
export DEPLOY_KEMP_URL="https://kemplm.example.com"
acme.sh --deploy -d example.com --deploy-hook kemplm
```
If you generated a wildcard certificate and your certificate files are named _*.example.com_ it will be named just _example.com_ in the Kemp LoadMaster, since it allows only alphanumeric names for certificates.
If you generated a wildcard certificate and your certificate files are named _*.example.com_ it will be named just _example.com_ in the Kemp LoadMaster, since it allows only alphanumeric names for certificates.
## 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).
```
export DEPLOY_LOCALCOPY_CERTIFICATE="/path/to/target/cert.cer"
export DEPLOY_LOCALCOPY_CERTKEY="/path/to/target/cert.key"
export DEPLOY_LOCALCOPY_FULLCHAIN="/path/to/target/fullchain.cer"
export DEPLOY_LOCALCOPY_CA="/path/to/target/ca.cer"
export DEPLOY_LOCALCOPY_RELOADCMD="/path/to/reloadcmd.sh"
acme.sh --deploy -d example.com --deploy-hook localcopy
```