AH02579:初始化:未找到私钥 - Apache VirtualHost

AH02579:初始化:未找到私钥 - Apache VirtualHost

我正在尝试在 apache 中设置虚拟主机以在 Node.js 中反向代理,当我尝试使用 SSL 证书时出现此错误,它说找不到密钥,即使我输入 cd“directory_here”,它也会正常打开密钥,为什么显示找不到它?如果密钥在那里,为什么找不到它?

[Wed Aug 21 16:19:53.260952 2019] [ssl:emerg] [pid 58556] AH02564: Failed to configure encrypted (?) private key domain.net:443:1, check /home/domain/ssl/certs/domain_net.crt
[Wed Aug 21 16:20:05.758834 2019] [ssl:error] [pid 58627] AH02579: Init: Private key not found
[Wed Aug 21 16:20:05.758876 2019] [ssl:error] [pid 58627] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Wed Aug 21 16:20:05.758892 2019] [ssl:error] [pid 58627] SSL Library Error: error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error
[Wed Aug 21 16:20:05.758903 2019] [ssl:error] [pid 58627] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Wed Aug 21 16:20:05.758914 2019] [ssl:error] [pid 58627] SSL Library Error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error (Type=RSA)
[Wed Aug 21 16:20:05.758926 2019] [ssl:error] [pid 58627] SSL Library Error: error:04093004:rsa routines:OLD_RSA_PRIV_DECODE:RSA lib
[Wed Aug 21 16:20:05.758936 2019] [ssl:error] [pid 58627] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Wed Aug 21 16:20:05.758946 2019] [ssl:error] [pid 58627] SSL Library Error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error (Type=PKCS8_PRIV_KEY_INFO)
[Wed Aug 21 16:20:05.758959 2019] [ssl:emerg] [pid 58627] AH02564: Failed to configure encrypted (?) private key domain.net:443:1, check /home/domain/ssl/certs/domain_net.crt

这是我的 VirtualHost 文件

ServerName domain.net
ServerAlias www.domain.net

DocumentRoot /home/domain/public_html
ErrorLog /home/domain/public_html/nuxtError.log
CustomLog /home/domain/public_html/nuxtAccess.log combined

ProxyRequests Off
ProxyPreserveHost On
ProxyVia Full
<Proxy *>
   Require all granted
</Proxy>

ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/

SSLEngine on
SSLCertificateFile /home/domain/ssl/certs/domain_net.crt
SSLCertificateKeyFile /home/domain/ssl/keys/domainkey.key

相关内容