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="