mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-12-24 20:22:08 +08:00
Updated 'Deploy your cert to DirectAdmin'
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user