无法使SSL工作.apache2/ubuntu



我从ssl2buy.com购买了通配符SSL证书,但我渴望使它起作用。我无法让我的Web服务器启动SSL启动。我的网站的conf文件以及日志文件中的错误代码。

<VirtualHost *:80 *:433>
    SSLEngine on
    SSLCertificateFile /home/rajohan/ssl/rajohan.crt
    SSLCertificateKeyFile /home/rajohan/ssl/rajohan.key
    SSLCertificateFile /home/rajohan/ssl/rajohaninter.crt
    ServerName rajohan.no   
    ServerAdmin mail@rajohan.no
    DocumentRoot /var/www/rajohan.no/www
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

[Sun Dec 10 22:32:56.352511 2017] [ssl:error] [pid 17713] AH02579: Init: Private key not found
[Sun Dec 10 22:32:56.352545 2017] [ssl:error] [pid 17713] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Sun Dec 10 22:32:56.352553 2017] [ssl:error] [pid 17713] SSL Library Error: error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error
[Sun Dec 10 22:32:56.352558 2017] [ssl:error] [pid 17713] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Sun Dec 10 22:32:56.352563 2017] [ssl:error] [pid 17713] SSL Library Error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error (Type=RSA)
[Sun Dec 10 22:32:56.352569 2017] [ssl:error] [pid 17713] SSL Library Error: error:04093004:rsa routines:OLD_RSA_PRIV_DECODE:RSA lib
[Sun Dec 10 22:32:56.352574 2017] [ssl:error] [pid 17713] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Sun Dec 10 22:32:56.352579 2017] [ssl:error] [pid 17713] SSL Library Error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error (Type=PKCS8_PRIV_KEY_INFO)
[Sun Dec 10 22:32:56.352582 2017] [ssl:emerg] [pid 17713] AH02311: Fatal error initialising mod_ssl, exiting. See /var/log/apache2/error.log for more information
[Sun Dec 10 22:32:56.352584 2017] [ssl:emerg] [pid 17713] AH02564: Failed to configure encrypted (?) private key rajohan.no:443:1, check /home/rajohan/ssl/rajohaninter.crt
AH00016: Configuration Failed

我很不高兴听到您正在使用SSL证书安装过程进行故障排除。您的SSLCertificateChainFile可能存在问题,请按照以下说明在Apache HTTP服务器上安装SSL。

https://www.ssl2buy.com/wiki/install-ssl-certificate-in-apache-server

https://support.globalsign.com/customer/en/portal/articles/1225234-apache-http-server--ssl-certificate-installation

最新更新