Xampp Apache 未启动 SSL 配置
Posted
技术标签:
【中文标题】Xampp Apache 未启动 SSL 配置【英文标题】:Xampp Apache is not starting SSL configuration 【发布时间】: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
【问题讨论】:
【参考方案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
【讨论】:
以上是关于Xampp Apache 未启动 SSL 配置的主要内容,如果未能解决你的问题,请参考以下文章
XAMPP 拒绝在 Mac os 10.8 上启动 Apache
xampp启动失败 Apache shutdown unexpectedly