From aca2b6fa4a492272bd9b1421b6f3c2a0c9dd63b3 Mon Sep 17 00:00:00 2001 From: F-Plass <60349140+F-Plass@users.noreply.github.com> Date: Sun, 5 Dec 2021 16:25:57 +0100 Subject: [PATCH] Updated deployhooks (markdown) --- deployhooks.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/deployhooks.md b/deployhooks.md index f527838..f7e494a 100644 --- a/deployhooks.md +++ b/deployhooks.md @@ -735,4 +735,32 @@ When using https to connect to the Web UI with an existing self-signed certifica acme.sh --insecure --deploy -d example.com --deploy-hook peplink ``` -The certificate should now show up in "Network" -> "Certificate Manager". \ No newline at end of file +The certificate should now show up in "Network" -> "Certificate Manager". + +## 25. Deploy ssl cert on TrueNAS Core Server based on RestApi + +Before you can deploy your cert, you must [issue the cert first](https://github.com/Neilpang/acme.sh/wiki/How-to-issue-a-cert). +If you run the acme.sh Scipt on the Truenas Server itself you have to use the --dns option. +Deploy Scipt supports TrueNas Core newer than 12.0 U3. + +```sh +# Following environment variables must be set: +# +# export DEPLOY_TRUENAS_APIKEY="