add instructions for OpenMediaVault deploy hook

Ross Shen 2022-01-20 17:35:44 +08:00
parent 394208c755
commit aaf2ff2611

@ -760,3 +760,20 @@ If you run acme.sh on a system other than the TrueNAS server then you will need
```
acme.sh --insecure --deploy -d truenas.example.com --deploy-hook truenas
```
## 26. Deploy the cert on OpenMediaVault (OMV)
This deploy script is tested on OpenMediaVault 5.x. It supports both local and remote deployment. The way it works is that if a cert with the matching domain name is not found, it will firstly create a dummy cert to get its uuid, and then replace it with your cert.
```
export DEPLOY_OMV_WEBUI_ADMIN="admin"
export DEPLOY_OMV_HOST="192.168.1.200"
export DEPLOY_OMV_SSH_USER="root"
```
**DEPLOY_OMV_WEBUI_ADMIN** This is OMV web gui admin account. Default value is admin. It's required as the user parameter (-u) for the omv-rpc command.
**DEPLOY_OMV_HOST** and **DEPLOY_OMV_SSH_USER** are optional. They are used for remote deployment through ssh (support public key authentication only). Per design, OMV web gui admin doesn't have ssh permission, so another account is needed for ssh.
```sh
acme.sh --deploy -d omv.example.com --deploy-hook openmediavault
```