Skip to content

Instantly share code, notes, and snippets.

@abegodong
Last active January 22, 2016 06:46
Show Gist options
  • Save abegodong/906a679a154061df32fa to your computer and use it in GitHub Desktop.
Save abegodong/906a679a154061df32fa to your computer and use it in GitHub Desktop.
Install SSL Certificate

Setup Directadmin with LetsEncrypt SSL

  1. install GIT, for Debian/Ubuntu apt-get install -y git and for Centos yum install -y git

  2. Clone letsencrypt command from the repository: git clone https://github.com/letsencrypt/letsencrypt cd letsencrypt

  3. Run the automatic certificate generation command: ./letsencrypt-auto --server https://acme-v01.api.letsencrypt.org/directory certonly --agree-tos --email '[YOUR_EMAIL]' --webroot --webroot-path '/var/www/html' -d [DIRECTADMIN_DOMAIN]

  4. Edit /usr/local/directadmin/conf/directadmin.conf, and set/change as follow: SSL=1 cacert=/etc/letsencrypt/live/[SERVER_HOST]/fullchain.pem cakey=/etc/letsencrypt/live/[SERVER_HOST]/privkey.pem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment