Skip to content
This repository has been archived by the owner on Jan 20, 2021. It is now read-only.

DirectAdmin plugin for Let's Encrypt client (uses the DirectAdmin Web API)

Notifications You must be signed in to change notification settings

sjerdo/letsencrypt-directadmin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

letsencrypt-directadmin

Installation

  • 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

Installation for development

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

Run

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

TODO: Run with configuration file

DirectAdmin Login Keys

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

About

DirectAdmin plugin for Let's Encrypt client (uses the DirectAdmin Web API)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages