6

lnmp 脚本SSL证书报ecc目录不存在修复

 1 year ago
source link: https://vps.la/2023/02/12/lnmp-%e8%84%9a%e6%9c%acssl%e8%af%81%e4%b9%a6%e6%8a%a5ecc%e7%9b%ae%e5%bd%95%e4%b8%8d%e5%ad%98%e5%9c%a8%e4%bf%ae%e5%a4%8d/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
当前位置:VPS啦 > 学习教程 > 正文

lnmp 脚本SSL证书报ecc目录不存在修复

最近给LNMP脚本安装的机器添加域名时。发现会报一个xxx.com_ecc目录找不到错误
经过查看,发现是证书生成的目录不知道怎么从xxx.com变成了xxx.com_ecc了
经过几次教育后,还是整个一劳永逸的办法吧,就是修改lnmp执行脚本
本方法仅验证了LNMPA脚本的BuyZero证书,其他类型的请自行按照类似位置修改
方法如下:
修改/usr/bin/lnmp
添加位置:
45fb66336a984a443eb86.png
        if [ ! -s ssl_certificate ]; then
            ssl_certificate="/usr/local/nginx/conf/ssl/${domain}_ecc/fullchain.cer"
            ssl_certificate_key="/usr/local/nginx/conf/ssl/${domain}_ecc/${domain}.key"
修改后如下:
2336c09bb21733aecdb27.png
修改后执行没有错误了,结果如下:
f346525fff8d15d9510c1.png

未经允许不得转载:VPS啦 » lnmp 脚本SSL证书报ecc目录不存在修复


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK