From aaf2ff26113ee9ceb8a1a52cfd68a1657fbb1984 Mon Sep 17 00:00:00 2001 From: Ross Shen Date: Thu, 20 Jan 2022 17:35:44 +0800 Subject: [PATCH] add instructions for OpenMediaVault deploy hook --- deployhooks.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/deployhooks.md b/deployhooks.md index b59f747..6db4af1 100644 --- a/deployhooks.md +++ b/deployhooks.md @@ -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 +``` \ No newline at end of file