【问题标题】:Xampp Apache is not starting SSL configurationXampp Apache 未启动 SSL 配置
【发布时间】:2015-05-29 17:47:20
【问题描述】:
[Wed Mar 25 20:33:20.591528 2015] [ssl:error] [pid 24469] AH02578: Init: Unable to read pass phrase [Hint: key introduced or changed before restart?]
[Wed Mar 25 20:33:20.591679 2015] [ssl:error] [pid 24469] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Wed Mar 25 20:33:20.591698 2015] [ssl:error] [pid 24469] SSL Library Error: error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error
[Wed Mar 25 20:33:20.591711 2015] [ssl:error] [pid 24469] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Wed Mar 25 20:33:20.591724 2015] [ssl:error] [pid 24469] SSL Library Error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error (Type=RSA)
[Wed Mar 25 20:33:20.591739 2015] [ssl:error] [pid 24469] SSL Library Error: error:04093004:rsa routines:OLD_RSA_PRIV_DECODE:RSA lib
[Wed Mar 25 20:33:20.591751 2015] [ssl:error] [pid 24469] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Wed Mar 25 20:33:20.591764 2015] [ssl:error] [pid 24469] SSL Library Error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error (Type=PKCS8_PRIV_KEY_INFO)
[Wed Mar 25 20:33:20.591780 2015] [ssl:emerg] [pid 24469] AH02311: Fatal error initialising mod_ssl, exiting. See /opt/lampp/logs/error_log for more information
[Wed Mar 25 20:33:20.591790 2015] [ssl:emerg] [pid 24469] AH02564: Failed to configure encrypted (?) private key abc.domain.com:443:0, check /opt/lampp/etc/ssl.key/domain.key
AH00016: Configuration Failed

【问题讨论】:

    标签: apache ssl xampp ssl-certificate


    【解决方案1】:

    您好,我遇到了类似的问题...我通过在生成自签名证书时不使用任何密码来解决它。

    【讨论】:

    • 你有生成没有密码的.key文件的命令谢谢
    • openssl rsa -in www.key -out new.key
    【解决方案2】:

    您可以在没有密码的情况下创建新密钥:

    openssl rsa -in www.key -out new.key 
    

    【讨论】:

      【解决方案3】:

      您可以使用 SSLPassPhraseDialog 轻松解决此问题

      SSLPassPhraseDialog  exec:/etc/httpd/conf/pwf.sh
      

      pwf.sh 文件内容

      #!/bin/sh
      echo password
      

      【讨论】:

        猜你喜欢
        • 2018-08-18
        • 2015-11-20
        • 2021-12-24
        • 2013-06-26
        • 2016-09-22
        • 1970-01-01
        • 2012-08-01
        • 2018-04-17
        相关资源
        最近更新 更多