首先开启SNI,以支持多个证书绑定一个IP
echo enable_ssl_sni=1 >> /usr/local/directadmin/conf/directadmin.conf
加入开启Letsencryp自动配置项
echo letsencrypt=1 >> /usr/local/directadmin/conf/directadmin.conf
重启DA
echo "action=directadmin&value=restart" >> /usr/local/directadmin/data/task.queue; /usr/local/directadmin/dataskq d2000
添加/.well-known重定向
cd /usr/local/directadmin/custombuild
./build rewrite_confs
获取最新的脚本
cd /usr/local/directadmin/custombuild
./build update
./build letsencrypt
以上配置好后可以在用户面板看到Let’s encrypt SSL的选项
以上参考官方链接:https://help.directadmin.com/item.php?id=648
继续阅读 →