2017-02-20 2 views
1

스트라이프 결제 게이트웨이가 필요한 웹 사이트를 구축하려고하므로 SSL이 필요합니다. Windows 10에서 XAMPP를 사용하고 있습니다. SSL 인증서와 키 쌍을 생성하고 Apache에 설치 한 후 Apache가 더 이상 시작하지 않습니다.자체 서명 된 SSL 인증서가 설치되어 있습니다. Apache가 시작되지 않습니다.

몇 가지 오류 메시지와 구성이 첨부됩니다. 도와주세요.

이것은 Apache 오류 로그에있는 메시지입니다. 더 이상 이러한 오류 메시지를 재생산하지 않습니다. 그래서 무언가가 바뀌었나 봅니다. 나는 다른 방법을 통해 인증서와 키를 생성하려고 시도했다고 생각합니다. 그러나 아파치는 여전히 시작하지 않을 것이다.

[Sun Feb 19 15:45:25.312250 2017] [ssl:emerg] [pid 6508:tid 556] AH02577: Init: SSLPassPhraseDialog builtin is not supported on Win32 (key file C:/xampp/apache/conf/ssl.key/server.key) 
[Sun Feb 19 15:45:25.312250 2017] [ssl:emerg] [pid 6508:tid 556] AH02311: Fatal error initialising mod_ssl, exiting. See C:/xampp/apache/logs/error.log for more information 
[Sun Feb 19 15:45:25.312250 2017] [ssl:emerg] [pid 6508:tid 556] AH02564: Failed to configure encrypted (?) private key www.loc1.dev:443:0, check C:/xampp/apache/conf/ssl.key/server.key 
[Sun Feb 19 15:45:25.312250 2017] [ssl:emerg] [pid 6508:tid 556] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag 
[Sun Feb 19 15:45:25.312250 2017] [ssl:emerg] [pid 6508:tid 556] SSL Library Error: error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error 
[Sun Feb 19 15:45:25.312250 2017] [ssl:emerg] [pid 6508:tid 556] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag 
[Sun Feb 19 15:45:25.312250 2017] [ssl:emerg] [pid 6508:tid 556] SSL Library Error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error (Type=RSA) 
[Sun Feb 19 15:45:25.312250 2017] [ssl:emerg] [pid 6508:tid 556] SSL Library Error: error:04093004:rsa routines:OLD_RSA_PRIV_DECODE:RSA lib 
[Sun Feb 19 15:45:25.312250 2017] [ssl:emerg] [pid 6508:tid 556] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag 
[Sun Feb 19 15:45:25.312250 2017] [ssl:emerg] [pid 6508:tid 556] SSL Library Error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error (Type=PKCS8_PRIV_KEY_INFO) 
AH00016: Configuration Failed 

명령 줄에서 아파치를 시작하려고 할 때 나타나는 오류입니다.

Apache 2 is starting ... 
AH00548: NameVirtualHost has no effect and will be removed in the next release C:/xampp/apache/conf/extra/httpd-vhosts.conf:26 
(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : AH00072: make_sock: could not bind to address [::]:443 
(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : AH00072: make_sock: could not bind to address 0.0.0.0:443 
AH00451: no listening sockets available, shutting down 
AH00015: Unable to open logs 

다음은 XAMPP 제어 대화 상자에 게시 된 오류입니다.

1:16:13 PM [Apache] Error: Apache shutdown unexpectedly. 
1:16:13 PM [Apache] This may be due to a blocked port, missing dependencies, 
1:16:13 PM [Apache] improper privileges, a crash, or a shutdown by another method. 
1:16:13 PM [Apache] Press the Logs button to view error logs and check 
1:16:13 PM [Apache] the Windows Event Viewer for more clues 
1:16:13 PM [Apache] If you need more help, copy and post this 
1:16:13 PM [Apache] entire log window on the forums 

이것은 httpd-vhosts.conf에있는 내용입니다. loc1.dev에 SSL을 설정하려고합니다.

<VirtualHost *:80> 
    DocumentRoot "C:/xampp/htdocs" 
    ServerName localhost 
</VirtualHost> 

<VirtualHost *:80> 
    DocumentRoot "C:/xampp/htdocs/loc.com/public_html" 
    ServerName loc.dev 
    ServerAlias www.loc.dev 
    <Directory "C:/xampp/htdocs/loc.com/public_html"> 
    AllowOverride All 
    Require all Granted 
    </Directory> 
</VirtualHost> 

<VirtualHost *:80> 
    DocumentRoot "C:/xampp/htdocs/loc1.com/public_html" 
    ServerName loc1.dev 
    ServerAlias www.loc1.dev 
    <Directory "C:/xampp/htdocs/loc1.com/public_html"> 
    AllowOverride All 
    Require all Granted 
    </Directory> 
</VirtualHost> 

<VirtualHost *:80> 
    DocumentRoot "C:/xampp/htdocs/foodharbor.org/public_html" 
    ServerName foodharbor.dev 
    ServerAlias www.foodharbor.dev 
    <Directory "C:/xampp/htdocs/foodharbor.org/public_html"> 
    AllowOverride All 
    Require all Granted 
    </Directory> 
</VirtualHost> 

이 내가 내 호스트 파일에 어떤 아파치 - ssl.conf

<VirtualHost _default_:443> 

# General setup for the virtual host 
DocumentRoot "C:/xampp/htdocs/loc1.com/public_html" 
ServerName www.loc1.dev 
ServerAdmin [email protected] 
ErrorLog "C:/xampp/apache/logs/error.log" 
TransferLog "C:/xampp/apache/logs/access.log" 
SSLEngine on 
SSLCertificateFile "conf/ssl.crt/server.crt" 
SSLCertificateKeyFile "conf/ssl.key/server.key" 

</VirtualHost>  

이것은이 무엇인지입니다 (C : \ WINDOWS \ system32를 \ 드라이버 \ 등 \ 호스트).

127.0.0.1 localhost 
127.0.0.1 loc.dev 
127.0.0.1 loc1.dev 
127.0.0.1 foodharbor.dev 

나는 무엇이 있습니까?

답변

0

httpd-ssl.conf (C : \ xampp \ apache \ conf \ extra)의 Listen 443을 주석 처리했으며 이제 아파치가 시작되고이 사이트는 https 및 http에서 사용할 수 있습니다. 이미 다른 곳에서 Apache가 443을 듣도록 지시해야합니다 ...

# 
# When we also provide SSL we have to listen to the 
# standard HTTP port (see above) and to the HTTPS port 
# 
#Listen 443