cpanel_uapi

Added cpanel_uapi instructions
This commit is contained in:
Santeri 2017-09-03 13:09:44 +04:00 committed by GitHub
parent c53f36a777
commit 0c7faa0612

View File

@ -6,17 +6,13 @@ Here are the scripts to deploy the certs/key to the server/services.
## 1. Deploy the certs to your cpanel host. ## 1. Deploy the certs to your cpanel host.
(cpanel deploy hook is not finished yet, this is just an example.) This hook is using UAPI and works in cPanel & WHM version 56 or newer.
Then you can deploy now:
```sh ```sh
export DEPLOY_CPANEL_USER=myusername export DEPLOY_CPANEL_USER=cpanel_username
export DEPLOY_CPANEL_PASSWORD=PASSWORD acme.sh --deploy -d example.com --deploy-hook cpanel_uapi
acme.sh --deploy -d example.com --deploy-hook cpanel
``` ```
DEPLOY_CPANEL_USER is required only if you run the script as root and it should contain cpanel username.
## 2. Deploy ssl cert on kong proxy engine based on api. ## 2. Deploy ssl cert on kong proxy engine based on api.