*** UPDATED 2017-08-31 ***
Directadmin developers added a short version of the suggested patch to letsencrypt.sh since VERSION=1.0.9, which is already available from here http://files1.directadmin.com/services/all/letsencrypt/letsencrypt.sh.1.0.9.
An actual version of the script can found here: http://files1.directadmin.com/services/all/letsencrypt/letsencrypt.sh
*** OLD WAY ***
Having 10-20-30... domains (and more) in ca.san_config is a challenge to get them verified at once. As it fails randomly with HTTP/500 error:
Challenge error: HTTP/1.1 100 Continue Expires: Tue, 11 Apr 2017 03:55:26 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache HTTP/1.1 500 Internal Server Error Server: AkamaiGHost Mime-Version: 1.0 Content-Type: text/html Content-Length: 176 Expires: Tue, 11 Apr 2017 03:55:26 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Tue, 11 Apr 2017 03:55:26 GMT Connection: close <HTML><HEAD><TITLE>Error</TITLE></HEAD><BODY> An error occurred while processing your request.<p> Reference #179.8c346d68.1491882926.29101b5 </BODY></HTML>. Exiting...
Solved by giving a chance to re-try...
cd /usr/local/directadmin/scripts cp -p letsencrypt.sh letsencrypt_poralix.sh wget -O ./letsencrypt_poralix.patch https://raw.githubusercontent.com/poralix/directadmin-utils/master/letsencrypt/letsencrypt_poralix.patch patch ./letsencrypt_poralix.sh -i letsencrypt_poralix.patch
Or download a full custom version:
cd /usr/local/directadmin/scripts wget -O ./letsencrypt_poralix.sh https://raw.githubusercontent.com/poralix/directadmin-utils/master/letsencrypt/letsencrypt_poralix.sh chmod 755 ./letsencrypt_poralix.sh
Now you can run (replace example.com with your domain):
cd /usr/local/directadmin/scripts ./letsencrypt_poralix.sh renew example.com
Getting challenge for mail.poralix.com from acme-server... Challenge error: HTTP/1.1 100 Continue Expires: Tue, 11 Apr 2017 04:21:31 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache HTTP/1.1 500 Internal Server Error Server: AkamaiGHost Mime-Version: 1.0 Content-Type: text/html Content-Length: 176 Expires: Tue, 11 Apr 2017 04:21:31 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Tue, 11 Apr 2017 04:21:31 GMT Connection: close <HTML><HEAD><TITLE>Error</TITLE></HEAD><BODY> An error occurred while processing your request.<p> Reference #179.8c346d68.1491884491.2960089 </BODY></HTML>. Do you want to retry (yes/no): yes Waiting for domain verification... Challenge is valid.
That's it!
P.S. Reported the issue to Directadmin developers today. So I hope they will fix it on their side too...