mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-07 15:12:10 +08:00
Updated deployhooks (markdown)
@@ -1242,11 +1242,14 @@ If you generated a wildcard certificate and your certificate files are named _*.
|
|||||||
|
|
||||||
## 39. Deploy to local directory via copy
|
## 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).
|
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_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_FULLCHAIN="/path/to/target/fullchain.cer"
|
||||||
export DEPLOY_LOCALCOPY_CA="/path/to/target/ca.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"
|
export DEPLOY_LOCALCOPY_RELOADCMD="/path/to/reloadcmd.sh"
|
||||||
acme.sh --deploy -d example.com --deploy-hook localcopy
|
acme.sh --deploy -d example.com --deploy-hook localcopy
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user