This article is a reprinted tutorial. The full text is reprinted. I wanted to test it but there were some things that delayed it in the past few days. However, a large number of netizens have verified it. DirectAdmin is what we often call DA, the original text below.
DirectAdminNeedless to say, I believe many people are using it, and many hosting providers choose DA because the price is more affordable than cPanel.
From today on, you can tell your users that they can use my DA host to issue certificates for free.
First make sure that Git and Composer are installed on your host. Search for the specific installation method and then execute:

1
2
3
4
5
6
7
cd /usr/local/directadmin/plugins
git clone https://github.com/Petertjuh360/da-letsencrypt.git da-letsencrypt
cd ./da-letsencrypt/
chown diradmin:diradmin - hR ../da-letsencrypt/
sh ./scripts/install.sh
composer install
chown diradmin:diradmin -hR ../da-letsencrypt/

Then modify /usr/local/directadmin/plugins/da-letsencrypt/plugin.conf
and change active=no and installed=no to active=yes and installed=yes
. The administrator logs in to the background and there is a message at the end of the homepage. Let's Encrypt Certificates  (Similar to this place https://abc.com:2222/CMD_PLUGINS_ADMIN/da-letsencrypt/index.html)
Click on Let's Encrypt Live and submit.
Enter the user you want to manage, and also let’s Encrypt Certificates at the end of the home page.
20160102225221
The default root domain name is already included. Others need to be selected manually. Second-level domain names can also be issued, but few people will also make www A records for second-level domain names, so remember Remove.
If there is a CDN on the front end, you may need to turn off the CDN. If there is a second-level domain name that does not point to the IP of the current DA, it may not be issued. If your domain name DNS server is located in North Korea or the network is not good.
Maybe it can’t be issued. Anyway, I didn’t use CDN and only signed a few second-level domain names, and the DNS was successfully issued in one go.
20160102225415
Then after successful issuance, as shown in the figure. The plug-in supports automatic renewal of certificates, so manual updates every three months are no longer required. .
Currently, the plug-in is still in beta. If a new version appears, the update steps are as follows:

1
2
3
cd /usr/local/directadmin/plugins/da-letsencrypt
git pull
composer update

Original source: This article was published by alect at http://www.hostloc.com/thread-301665-1-1.html

postid
7304

Leave a Reply