15-04-2011, 07:50
|
|
|
|
חבר מתאריך: 12.10.03
הודעות: 757
|
|
הגדרת שרת Apache+SSL בווינדוז.
שלום לכולם,
אני קודם כל, לא יודע האם זה קשור לפורום פה, אז להעביר במידת הצורך.
התקנתי שרת Apache על המחשב שלי, והכל טוב ויפה..
אבל ברגע שאני רוצה להריץ את ה-SSL מוד, אז זה פשוט לא מתחבר לי ל-https://localhost/
ההודעה שמקבל ב-FF:
קוד:
The connection was interrupted
The connection to localhost was interrupted while the page was loading.
אציין, שגם ב-IE וכרום זה לא פועל.
כמובן שהכל עשיתי לפי המדריך הנפלא הזה:
http://www.neilstuff.com/apache/apache2-ssl-windows.htm
קובץ ה-errorlog:
קוד:
[Fri Apr 15 08:45:32 2011] [notice] Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.2.17 configured -- resuming normal operations
[Fri Apr 15 08:45:32 2011] [notice] Server built: Oct 18 2010 01:58:12
[Fri Apr 15 08:45:32 2011] [notice] Parent: Created child process 4192
httpd.exe: Could not reliably determine the server's fully qualified domain name, using xx.xx.xx.xx for ServerName
[Fri Apr 15 08:45:32 2011] [notice] Child 4192: Child process is running
[Fri Apr 15 08:45:32 2011] [notice] Child 4192: Acquired the start mutex.
[Fri Apr 15 08:45:32 2011] [notice] Child 4192: Starting 64 worker threads.
[Fri Apr 15 08:45:32 2011] [notice] Child 4192: Starting thread to listen on port 443.
[Fri Apr 15 08:45:32 2011] [notice] Child 4192: Starting thread to listen on port 80.
קובץ ה-access.log:
קוד:
127.0.0.1 - - [15/Apr/2011:08:42:03 +0300] "\x16\x03\x01" 200 -
127.0.0.1 - - [15/Apr/2011:08:42:05 +0300] "\x80U\x01\x03" 200 -
127.0.0.1 - - [15/Apr/2011:08:45:40 +0300] "\x80U\x01\x03" 200 -
מה הייתם ממליצים לי לעשות?
עריכה:
אם מתחברים עם http://localhost:443/, זה עובד בלי SSL.
עריכה 2:
ב-Debug של OpenSSL אני מקבל ככה:
קוד:
C:\OpenSSL-Win32\bin>openssl s_client -connect localhost:443
Loading 'screen' into random state - done
CONNECTED(0000018C)
4104:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure:.\ssl\s23_lib
.c:177:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 210 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
---
מה הפתרון?
נערך לאחרונה ע"י KingYes בתאריך 15-04-2011 בשעה 08:08.
|