小编Pau*_*aul的帖子

如何修复 AH02565:证书和私钥不匹配

我们有一个托管在 Ubuntu apache 服务器上的应用程序,并在那里安装了 LetsEncrypt SSL。现在我想用 Digicert 证书更改 Letsencrypt ssl 证书。我按照 Digicert ssl 安装文档进行操作,当我尝试启动我的 apache 服务器时,它会失败。检查错误日志后我发现以下错误。

AH02565: Certificate and private key urbaninspirations.biz:443:0 from /etc/cert/domain_name.crt and /etc/cert/domain_name.key do not match
AH00016: Configuration Failed
Run Code Online (Sandbox Code Playgroud)

下面是我的“000-default-le-ssl.conf”页面脚本

<VirtualHost *:443>
    ServerName domain_name.biz
    ServerAlias www.domain_name.biz
    SSLEngine On
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
    
    ### This is using in Letsencrypt SSL certificates
    Include /etc/letsencrypt/options-ssl-apache.conf
    SSLCertificateFile /etc/letsencrypt/live/domain_name.biz/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/domain_name.biz/privkey.pem

    ### Change this for DigiCert SSL certification but getting error when enable below line
    #SSLCertificateFile /etc/cert/domain_name.crt
    #SSLCertificateKeyFile /etc/cert/domain_name.key
    #SSLCertificateChainFile /etc/cert/DigiCertCA.crt
</VirtualHost> …
Run Code Online (Sandbox Code Playgroud)

apache-2.4 ubuntu-14.04

3
推荐指数
1
解决办法
2万
查看次数

标签 统计

apache-2.4 ×1

ubuntu-14.04 ×1