Let's Encrypt Directadmin in a Docker
This project provides an easy way to configure a Let's encrypt certificate for a Directadmin based hosted website. It's based on letsencrypt-directadmin from Sjerdo and it wraps it in a Docker container. In this way you can add/update the certificate without polluting the host system with the log files and account settings of the tool.
How to use
- Clone the repository
$ git clone https://github.com/Ecno92/letsencrypt-directadmin-docker.git
- Move into the directory:
$ cd letsencrypt-directadmin-docker
- Copy the Makefile template:
$ cp Makefile.template Makefile
- Edit the Makefile template and adjust the domain, password etc.:
$ nano Makefile
- Create the image & container:
$ make create-container
- Update the certificate:
$ make update-cert
- Schedule a calendar or cronjob event to run
$ make update-certwithin 3 months to renew the certificate.
Let's Encrypt is supported in recent versions of Directadmin. So actually there should not be a need to use this tool. Unfortunately a lot of hosting companies disabled this feature. I recommend to consult your hosting party to ask them if they can enable the native implementation to secure your website. So you do not have to use this project.
This projects is tested on some production websites and it is provided as is.