-
install GIT, for Debian/Ubuntu
apt-get install -y gitand for Centosyum install -y git -
Clone letsencrypt command from the repository:
git clone https://github.com/letsencrypt/letsencrypt cd letsencrypt -
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] -
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
Last active
August 6, 2026 02:44
-
-
Save abegodong/906a679a154061df32fa to your computer and use it in GitHub Desktop.
Install SSL Certificate
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment