顯示具有 HTTPS 標籤的文章。 顯示所有文章
顯示具有 HTTPS 標籤的文章。 顯示所有文章

2022年5月11日 星期三

[研究]XAMPP 8.1.5 與 Apache mod_security (WAF) 安裝設定測試 (Windows 2019)

[研究]XAMPP 8.1.5 與 Apache mod_security (WAF) 安裝設定測試 (Windows 2019)

2022-05-11

因故要找個於Windows上安裝後就有Apache Web Server和ModSecurity可用軟體。

官方網站
https://www.apachefriends.org/zh_tw/download.html

包含: Apache 2.4.53, MariaDB 10.4.24, PHP 8.1.5, phpMyAdmin 5.1.3, OpenSSL 1.1.1, XAMPP Control Panel 3.2.4, Webalizer 2.23-04, Mercury Mail Transport System 4.63, FileZilla FTP Server 0.9.41, Tomcat 8.5.78 (with mod_proxy_ajp as connector), Strawberry Perl 5.32.1.1 Portable

xampp-windows-x64-7.4.29-0-VC15-installer 於 Windows Server 2019 安裝後,

Apache 按下 Start 按鈕,結果失敗

error.log


[Tue May 10 15:33:55.367952 2022] [ssl:warn] [pid 3932:tid 524] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue May 10 15:33:55.414697 2022] [ssl:warn] [pid 3932:tid 524] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue May 10 15:33:55.461547 2022] [mpm_winnt:notice] [pid 3932:tid 524] AH00455: Apache/2.4.53 (Win64) OpenSSL/1.1.1n PHP/8.1.5 configured -- resuming normal operations
[Tue May 10 15:33:55.461547 2022] [mpm_winnt:notice] [pid 3932:tid 524] AH00456: Apache Lounge VS16 Server built: Mar 16 2022 11:26:15
[Tue May 10 15:33:55.461547 2022] [core:notice] [pid 3932:tid 524] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Tue May 10 15:33:55.477490 2022] [mpm_winnt:notice] [pid 3932:tid 524] AH00418: Parent: Created child process 984
[Tue May 10 15:33:55.946098 2022] [ssl:warn] [pid 984:tid 536] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue May 10 15:33:55.978006 2022] [ssl:warn] [pid 984:tid 536] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue May 10 15:33:56.008909 2022] [mpm_winnt:notice] [pid 984:tid 536] AH00354: Child: Starting 150 worker threads.


[研究] XAMPP for Windows 7.1.7 + HTTPS (SSL) 安裝 (Windows 7)
http://shaurong.blogspot.com/2017/07/xampp-for-windows-717-https-ssl-windows.html
舊版是安裝後,Apache 可以順利啟動,且有 HTTPS (SSL) 可用。

目前疑似為伺服器憑證 (server certificate) 方面問題,暫時沒空研究和解決,先找別套。

********************************************************************************

2022-05-16 補

[研究][ASP.NET]XAMPP 8.1.5 解決 Apache 啟動失敗問題
https://shaurong.blogspot.com/2022/05/aspnetxampp-815-apache.html

[研究]XAMPP 7.4.29.0 與 ModSecurity 2.9.5 (WAF, 網頁應用程式防火牆) 安裝測試 (Windows 2019)
https://shaurong.blogspot.com/2022/05/xampp-74290-modsecurity-295-waf-windows.html

********************************************************************************

(完)

相關

[研究] XAMPP win32-7.3.1-0-VC15安裝(Windows 2019)
https://shaurong.blogspot.com/2019/02/xampp-win32-731-0-vc15windows-2019.html

[研究] XAMPP for Windows 7.1.7 + HTTPS (SSL) 安裝 (Windows 7)
http://shaurong.blogspot.com/2017/07/xampp-for-windows-717-https-ssl-windows.html

[研究] XAMPP for Windows 5.6.38 + HTTPS (SSL) 安裝 (Windows 2012 R2)
https://shaurong.blogspot.com/2017/01/xampp-for-windows-5638-https-ssl.html

[研究] LAMP(Linux, Apache 2.4.6, MariaDB 5.5.52, PHP 5.4.16)+OpenSSL 1.0.1e (yum)快速安裝程式(CentOS 7.3)
https://shaurong.blogspot.com/2017/01/lamplinux-apache-mariadb_5.html

[研究] AppServ 8.6.0 (Apache 2.4.25 + PHP 5.6.30/7.1.1 + MySQL 5.7.17 + phpMyAdmin 4.6.6 + SSL) 安裝 (Windows 2019)
https://shaurong.blogspot.com/2019/02/appserv-860-apache-2425-php-5630711.html

[研究] Apache Web Server 2.4.x 架站軟體比較 (AMP、WAMP、LAMP)
https://shaurong.blogspot.com/2018/07/apache-web-server-24x.html

[研究] XAMPP for Windows 7.1.7 + HTTPS (SSL) 安裝 (Windows 7)
https://shaurong.blogspot.com/2017/07/xampp-for-windows-717-https-ssl-windows.html

[研究] AppServ 8.6.0 (Apache 2.4.25 + PHP 5.6.30/7.1.1 + MySQL 5.7.17 + phpMyAdmin 4.6.6 + SSL) 安裝 (Windows 7)
http://shaurong.blogspot.tw/2017/07/appserv-860-apache-2425-php-5630711.html

[研究] AppServ 8.4.0 + HTTPS (SSL) 安裝 (Windows 2012 R2)
http://shaurong.blogspot.com/2016/08/appserv-840-https-ssl-windows-2012-r2.html


[研究] Apache HTTPd Web Server 2.4.23 + HTTPS (SSL) 安裝 (Windows 2012 R2)
http://shaurong.blogspot.com/2016/08/apache-httpd-web-server-2423-https-ssl.html

[研究] Apache HTTPd Web Server 2.4.6 + HTTPS (SSL) yum 安裝 (CentOS 7.2 x64)
http://shaurong.blogspot.com/2016/08/apache-httpd-web-server-246-https-ssl.html

網際網路資訊服務(英语:Internet Information Services,簡稱IIS)
https://zh.wikipedia.org/wiki/%E7%B6%B2%E9%9A%9B%E7%B6%B2%E8%B7%AF%E8%B3%87%E8%A8%8A%E6%9C%8D%E5%8B%99
有 Windows 版本和內建 IIS 版本關係

[研究] Windows 2012 R2 安裝 IIS 8.5 和 HTTP (SSL) 連線 (方法二)
http://shaurong.blogspot.com/2015/04/windows-2012-r2-iis-http-ssl.html

[研究] Windows 2012 R2 安裝 IIS 8.5 和 HTTP (SSL) 連線 (方法一)
http://shaurong.blogspot.com/2015/04/windows-2008-r2-iis-http-ssl.html

[研究] Windows 2012 安裝 IIS 8.0 和 HTTP (SSL) 連線
http://shaurong.blogspot.com/2015/04/windows-2012-iis-http-ssl.html

[研究] Windows 2008 R2 安裝 IIS 7.5 和 HTTP (SSL) 連線
http://shaurong.blogspot.com/2015/04/windows-2008-r2-iis-http-ssl.html

[研究] Windows 2003 R2 安裝 IIS 6.0 和 HTTPS (SSL) 連線
http://shaurong.blogspot.com/2015/04/windows-2003-r2-iis-https-ssl.html

[研究] Windows 10 Enterprise 1511 (x64)安裝架設IIS 10.0、建立SSL憑證、提供 HTTPS (SSL) 連線
http://shaurong.blogspot.com/2016/02/windows-10-enterprise-1511-x64iisssl.html

[研究] Windows 7 Ultimate x64安裝架設IIS 7.5、建立SSL憑證、提供 HTTPS (SSL) 連線
http://shaurong.blogspot.com/2016/02/windows-7-ultimate-x64iisssl-https-ssl.html

[研究] Windows XP Professional x86 安裝架設IIS 5.1、建立SSL憑證、提供 HTTPS (SSL) 連線
http://shaurong.blogspot.com/2016/02/windows-xp-professional-x86-iisssl.html

[研究] 在Windows XP Professional上IIS 5.1啟動SSL
http://shaurong.blogspot.com/2011/06/windows-xp-professionaliisssl.html

Internet Information Services (IIS) 10.0 Express 下載
https://www.microsoft.com/zh-TW/download/details.aspx?id=48264
支援 Windows 7/2008R2,8/2012,8.1/2012 R2,10/2016

Internet Information Services (IIS) 8.0 Express
https://www.microsoft.com/en-us/download/details.aspx?id=34679

Internet Information Services (IIS) 7 Manager
https://www.microsoft.com/en-us/download/details.aspx?id=2299

Internet Information Services (IIS) 6.0 Resource Kit
https://www.microsoft.com/en-us/download/details.aspx?id=5135
支援 Windows XP/2003

Internet Information Services (IIS) 6.0 Resource Kit Tools
https://www.microsoft.com/en-us/download/details.aspx?id=17275

Internet Information Services (IIS) 6.0 Manager for Windows XP
https://www.microsoft.com/en-us/download/details.aspx?id=15662

2020年10月2日 星期五

[研究] Windows Server 2008 + IIS + nmap 7.80 支援加密演算法最大長度金鑰 測試

[研究] Windows Server 2008 + IIS + nmap 7.80 支援加密演算法最大長度金鑰 測試

2020-10-02

資通安全責任等級分級辦法 EN

附表十 資通系統防護基準.PDF
控制措施-構面:系統與通訊保護
控制措施-措施內容:傳輸之機密性與完整性
系統防護需求分級:(高等級系統)支援演算法最大長度金鑰。

環境
Windows Server 2008 with Service Pack 2 (x64)  + IIS + nmap 7.80 

測試
nmap --script ssl-cert,ssl-enum-ciphers -p 443 192.168.128.133

********************************************************************************

Starting Nmap 7.80 ( https://nmap.org ) at 2020-10-02 11:45 ¥x¥_?D·CRE?!
Nmap scan report for 192.168.128.133
Host is up (0.00013s latency).

PORT    STATE SERVICE
443/tcp open  https
| ssl-cert: Subject: commonName=WIN-P0WOV05PXAS
| Issuer: commonName=WIN-P0WOV05PXAS
| Public Key type: rsa
| Public Key bits: 2048
| Signature Algorithm: sha1WithRSAEncryption
| Not valid before: 2020-10-02T03:44:23
| Not valid after:  2021-10-02T00:00:00
| MD5:   121f 7e65 ad8a 5db5 d7aa ff2f 4a73 0c92
|_SHA-1: f0f8 9183 fc7c 3088 3e88 0976 29df 09aa 5f83 4e2a
| ssl-enum-ciphers: 
|   SSLv3: 
|     ciphers: 
|       TLS_RSA_WITH_RC4_128_SHA (rsa 2048) - C
|       TLS_RSA_WITH_3DES_EDE_CBC_SHA (rsa 2048) - C
|       TLS_RSA_WITH_RC4_128_MD5 (rsa 2048) - C
|     compressors: 
|       NULL
|     cipher preference: server
|     warnings: 
|       64-bit block cipher 3DES vulnerable to SWEET32 attack
|       Broken cipher RC4 is deprecated by RFC 7465
|       CBC-mode cipher in SSLv3 (CVE-2014-3566)
|       Ciphersuite uses MD5 for message integrity
|       Forward Secrecy not supported by any cipher
|       Weak certificate signature: SHA1
|   TLSv1.0: 
|     ciphers: 
|       TLS_RSA_WITH_AES_128_CBC_SHA (rsa 2048) - A
|       TLS_RSA_WITH_AES_256_CBC_SHA (rsa 2048) - A
|       TLS_RSA_WITH_RC4_128_SHA (rsa 2048) - C
|       TLS_RSA_WITH_3DES_EDE_CBC_SHA (rsa 2048) - C
|       TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (secp256r1) - A
|       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (secp256r1) - A
|       TLS_RSA_WITH_RC4_128_MD5 (rsa 2048) - C
|     compressors: 
|       NULL
|     cipher preference: server
|     warnings: 
|       64-bit block cipher 3DES vulnerable to SWEET32 attack
|       Broken cipher RC4 is deprecated by RFC 7465
|       Ciphersuite uses MD5 for message integrity
|       Weak certificate signature: SHA1
|_  least strength: C

MAC Address: 00:0C:29:F1:DE:EB (VMware)

Nmap done: 1 IP address (1 host up) scanned in 2.25 seconds


********************************************************************************
結果:

支援AES_256

支援 SHA1

支援 rsa 2048

這是預設支援的,根據 SSDLC 的安全建議,有些建議關閉。

IIS Crypto Version 3.2 Build 16 - Released April 11, 2020
至少要 Windows Server 2008

另外也可用 SSL Labs 網站進行測試。

https://www.ssllabs.com/ssltest/

(完)

相關 

進階加密標準(英語:Advanced Encryption Standard,縮寫:AES) - 維基百科,自由的百科全書
https://zh.wikipedia.org/wiki/%E9%AB%98%E7%BA%A7%E5%8A%A0%E5%AF%86%E6%A0%87%E5%87%86

SHA家族 - 維基百科,自由的百科全書
https://zh.wikipedia.org/wiki/SHA%E5%AE%B6%E6%97%8F

RSA加密演算法 - 維基百科,自由的百科全書
https://zh.wikipedia.org/wiki/RSA%E5%8A%A0%E5%AF%86%E6%BC%94%E7%AE%97%E6%B3%95