Order’s status (“pending”) is not acceptable for finalization Lets EncryptOrder’s status (“pending”) is not acceptable for finalization Lets Encrypt

As of DA 1.50.0, DirectAdmin have added a new feature that allows you to make use of LetsEncrypt, a tool offering free basic SSL certificates.
There is a script written in such a manner that you can also setup SSL for your hostname and all services in one simple command for your hostname: your.server.com

cd /usr/local/directadmin/scripts
./letsencrypt.sh request_single your.server.com 4096

which will also install the new cert/key/ca files in all respective global places for apache, dovecot, exim, ftp, and DirectAdmin.
NOTE The hostname value, eg: your.server.com must match the “servername” value set in the directadmin.conf, or it will not be in hostname mode, but User domain mode instead.

You must then turn on SSL in DA and tell DA to use the carootcert, as well as force the hostname for SSL:

cd /usr/local/directadmin
./directadmin set ssl 1
./directadmin set carootcert /usr/local/directadmin/conf/carootcert.pem
./directadmin set ssl_redirect_host your.server.com
service directadmin restart