- Clone this repository in the same directory using
git clone https://github.com/sjerdo/letsencrypt-directadmin.git
- Install by running
python setup-directadmin.py develop
- Download the letsencrypt client at https://github.com/letsencrypt/letsencrypt and set it up. Eg:
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
./bootstrap/install-deps.sh
./bootstrap/dev/venv.sh
- Clone this repository in the same directory using
git clone https://github.com/sjerdo/letsencrypt-directadmin.git tmp && mv tmp/.git .gittwo && rm -rf tmp && git --git-dir=.gittwo reset --hard .
- Install by running
./venv/bin/python setup-directadmin.py develop
You can run the client by executing the command
letsencrypt --configurator letsencrypt-directadmin:directadmin --letsencrypt-directadmin:directadmin-server https://www.example.com:2222/ --letsencrypt-directadmin:directadmin-username USERNAME --letsencrypt-directadmin:directadmin-login-key LOGINKEY
You can also use your DirectAdmin password instead of a Login Key, but this is not recommended.
Another example for running the plugin which includes the credentials in the server url:
letsencrypt --configurator letsencrypt-directadin:directadmin --letsencrypt-directadmin:directadmin-server https://DAUSER:LOGINKEY@example.com:2222/
You can specify for which domain a certificate needs to be generated and installed by appending -d domain.com
Eg: letsencrypt --configurator letsencrypt-directadin:directadmin --letsencrypt-directadmin:directadmin-server https://DAUSER:LOGINKEY@example.com:2222/ -d example.com -d www.example.com
If you would like to use DirectAdmin Login Keys (which is recommended) instead of your password, the login key should be allowed to use the following commands:
- CMD_API_LOGIN_TEST
- CMD_API_SHOW_DOMAINS
- CMD_API_DOMAIN_POINTER
- CMD_API_SUBDOMAINS
- CMD_API_FILE_MANAGER
- CMD_API_SSL