【问题标题】:Cant get SSL working. Apache2/Ubuntu无法让 SSL 工作。 Apache2/Ubuntu
【发布时间】:2017-12-10 22:38:55
【问题描述】:

我从 ssl2buy.com 购买了通配符 SSL 证书,但我正在努力让它工作。我无法让我的网络服务器在启用 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

【问题讨论】:

    标签: apache ubuntu ssl


    【解决方案1】:

    得知您在 SSL 证书安装过程中遇到问题,我很不高兴。您的SSLCertificateChainFile 可能存在问题,请按照以下说明在 Apache HTTP Server 上安装 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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-04-20
      • 2019-07-04
      • 2016-07-11
      • 2012-05-10
      • 1970-01-01
      • 1970-01-01
      • 2011-08-04
      • 1970-01-01
      相关资源
      最近更新 更多