Updated 'Deploy your cert to DirectAdmin'

master
Eddict 2025-05-26 03:45:26 +02:00
parent 7302118fcc
commit db39937f29
1 changed files with 5 additions and 11 deletions

@ -979,20 +979,14 @@ acme.sh --deploy -d example.com --deploy-hook netlify
## 32. Deploy your cert to DirectAdmin
You must define the following variables before getting started.
**export DirectAdmin_SCHEME**: Optional, https or http, defaults to https.\
**DirectAdmin_ENDPOINT**: The hostname and port of DirectAdmin Panel.\
**DirectAdmin_USERNAME**: DirectAdmin username\
**DirectAdmin_KEY**: DirectAdmin Login Key or Password\
**DirectAdmin_MAIN_DOMAIN**: Domain names for which the certificate need to be deployed. Get it in 'Domain Management' page.
**DEPLOY_DA_Api**: API Server URL. e.g. `"https://da_user:da_passwd@example.com:2222"`\
**DEPLOY_DA_Api_Insecure**: Insecure TLS. 0: check for cert validity, 1: always accept\
You can use the Login Key instead of the password ([Documentation](https://docs.directadmin.com/directadmin/customizing-workflow/api-all-about.html#creating-a-login-key)). Allow `CMD_SSL`, `CMD_API_SSL` command privileges.
You can use the Login Key instead of the password ([Documentation](https://docs.directadmin.com/directadmin/general-usage/securing-da-panel.html#creating-a-login-key)). Allow at least `CMD_API_SSL` command privileges.
```sh
export DirectAdmin_SCHEME="https"
export DirectAdmin_ENDPOINT="example.com:2222"
export DirectAdmin_USERNAME="Your DirectAdmin Username"
export DirectAdmin_KEY="Your DirectAdmin Login Key or Password"
export DirectAdmin_MAIN_DOMAIN="Your DirectAdmin Main Domain, NOT Subdomain"
export DEPLOY_DA_Api="https://da_user:da_passwd@example.com:2222"
export DEPLOY_DA_Api_Insecure="0"
acme.sh --deploy -d example.com --deploy-hook directadmin
```