jtm789 发表于 2023-6-29 16:43:13

LNMP1.7版本 SSL安装成功,Vhost找不到对应文件

本帖最后由 jtm789 于 2023-6-29 16:48 编辑

我使用的是LAMP 1.7,SSL证书成功。
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhsAAABOCAYAAACJ+9TQAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAA+FSURBVHhe7Z0hc+MwFse19wnu6E5mZ46GHelkliwqCrkpKCkoDmoPFRQblLWoOGBJQedIUckt6XT6AUL3ppMpvm/Q09+2EsW1JSWOkzT7+828XceypPekJ+dJsasv7xbzyfny5Ut5BAAAALvGX8r/AQA+0B+NzXjULz9tnm3X35bPrn+MXbcP/90d9nBlo29G2YU5Oviaf3p7eTGmNzWnp7f552D6MDOP5wf5+Zy3e3Nmz0/KjwV9e9mFOZ/lvzd304H5/npqLh/yUxthmD2a4+mZOb1d1M4xzMYzHa2W5uV6Ub9Y/m0xGj+aI6e2z8u1OfQMaNTf68O3++3Zt3L7b0T/ockez82B9e/D2bioQ9d9Nz8PLytjYFPU1L/t/l2q/m233yL64ruxg+vl+nBN96rt2RcbXwUd6PeJ+z9nm+NHwcZnR2Y4sQPqPRv155+Ho/fxeJScLrGO/G6D0YVzi2nz/MYe2y/I92y4eF0bGY2z92HN+WTpy6bs3cbT9ekdS1v9P+SXPdlw4ZqYqJ/tjKI2rXNZQ/t3rb989rHi91XZahtaCdW/y7o52baOdSKd1nWv2pp9ieOrS/0+a/872YZue/kzSs/83biFq8nDrbeqURBLb6Q/MsfmztxOvGjQHt+eejOFvo1m7ez88bGQcTaa1SU0o83P22hmOMrMWNeNMxsDW2z5+nz09cCcl/kl9uYwR5FpeV5lVMnLvzkyX20ZN66M8ahMtUTyFys349k1ypuNx2Z26VCfy7THsclGnnIp+kfax8cOiELHie0j18BR/SMk1d+3MxKll/2yBO3bP8IS7Rdl+loe1DE0J0dTc+XNfNQfqtP1p+/Lc7RyOP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FMINgAAAKBTCDYAAACgUwg2AAAAoFMINgAAAKBTCDYAAACgUwg2AAAAoFMINgAAAKBTCDYAAACgUwg2AAAAoFMINgAAAKBTCDYAAACgUwg2AAAAoFMINgAAAKBTCDYAAACgQ4z5P4X0QFvIEbbBAAAAAElFTkSuQmCC

【问题描述】
vhost.config 文件


SSLEngine on
SSLCertificateFile /usr/local/apache/conf/ssl/{域名}/{域名}.csr
SSLCertificateKeyFile /usr/local/apache/conf/ssl/{域名}/{域名}.key
SSLCertificateChainFile /usr/local/apache/conf/ssl/{域名}/ca.cer

在ssl/{域名} 有{域名}.cer,{域名}.key 文件。没有ca.cer

但在另外的目录 ssl/{域名}_ecc 下,则都有csr,key,cer 文件。

【做法】

我尝试把ssl/{域名}   替换成 ssl/{域名}_ecc 后,Apache 启动失败。

请问下,我该如何处理。

licess 发表于 2023-6-30 21:49:07

置顶帖里有具体说明和解决方法
页: [1]
查看完整版本: LNMP1.7版本 SSL安装成功,Vhost找不到对应文件