Xampp Apache没有启动SSL配置

时间:2015-03-25 20:43:09

标签: apache ssl xampp ssl-certificate

[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

3 个答案:

答案 0 :(得分:2)

你好我遇到了类似的问题......我在生成自签名证书时没有使用任何密码解决了这个问题。

答案 1 :(得分:2)

您可以创建没有密码短语的新密钥:

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

答案 2 :(得分:1)

您可以使用SSLPassPhraseDialog

轻松解决此问题
SSLPassPhraseDialog  exec:/etc/httpd/conf/pwf.sh

pwf.sh文件内容

#!/bin/sh
echo password