我有一个运行在端口 443 上的 Hudson/Jenkins 安装,因此我可以使用https://ci.mydomain.com. 我没有像 Apache Httpd 那样在端口 80 上运行的网络服务器,但我希望如果用户键入http://ci.mydomain.com
它应该重定向到https://...
我试过iptables:
/sbin/iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 443
/sbin/iptables-save
chkconfig --level 35 iptables on
Run Code Online (Sandbox Code Playgroud)
但是浏览器告诉我,连接失败。所以我不想安装 Apache 网络服务器,我只想重定向http://ci.mydomain.com到https://ci.mydomain.com.
我想验证我添加到我的 iOS 应用程序的分析包是否正在尝试与分析服务器(我无法控制)通信。我认为分析包是通过 HTTPS 进行通信的。所以我想监控 HTTPS 流量(我不在乎解密它......我只是想看看它是否在那里)。
我怎样才能用 Wireshark 做到这一点? 例如,我当前的 Wireshark 设置(这只是默认设置)允许我监控到http://www.duckduckgo.com而不是https://www.duckduckgo.com 的流量。 我需要更改 Wireshark 中的某些设置吗?
谢谢!
我有一个 Fortigate 80C,它允许通过 https 进行远程管理。
我访问了 URL,一切都很好,但真正让我烦恼的一件事是在 chrome 中带来了“不受信任的连接”以及整个“点击继续”的事情。
目前,证书是由 Fortigate 单元自签名的。
在该设备上有 5 个 CA 签名证书可供使用,但我无法弄清楚如何将这些证书分配给路由器接口。
有谁知道如何将 CA 签名的证书分配给端口 443 上的 WAN 接口,以便它不会一直要求我确认证书?
(我知道流量仍然是加密的,但它仍然很好)
我一直在研究几个数据泄漏/丢失防护套件,但在他们的文档中,我无法找到他们如何处理 HTTPS。
“泄漏向量”之一是通过 HTTPS 向 web 应用程序发送信息。在这种情况下,检测泄漏的唯一方法是对其进行解密。
但是,要做到这一点,它必须模仿远程服务器,使用假证书,就像中间人攻击一样。为了避免用户产生怀疑或抱怨,我猜公司需要在公司拥有的设备的浏览器上插入他们的证书作为有效的 CA。
我的问题是:
我正在制作一个 iPhone 应用程序,它将通过 HTTPS 与我的服务器进行通信。编程到应用程序中的重要身份验证信息(用于访问应用程序特定内容)将发送到服务器。如果有人创建了一个安装在他们设备上的伪造 SSL 证书(该证书看起来像是来自我的网站)并将我的域名指向他们计算机的 IP 地址,他们是否有可能捕获身份验证信息和任何其他信息最初发送到服务器?谢谢你的帮助。
我有一个安装了 Zend 服务器 CE 的 ubuntu 12.04 服务器。我现在想启用 https,但是在根据文档“a2enmod ssl”和“apache 服务重启”的第一步之后,根据 netstat -tap | apache 不监听 443 但也不监听 80。grep http(s)!
这是我在错误日志中看到的内容,但我无法理解:
[Fri May 25 19:52:39 2012] [notice] caught SIGTERM, shutting down
[Fri May 25 19:52:41 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri May 25 19:52:41 2012] [notice] ModSecurity for Apache/2.6.3 (http://www.modsecurity.org/) configured.
[Fri May 25 19:52:41 2012] [notice] ModSecurity: APR compiled version="1.4.5"; loaded version="1.4.6"
[Fri May 25 19:52:41 2012] [warn] ModSecurity: Loaded APR do not match …Run Code Online (Sandbox Code Playgroud) 我有以下配置文件:
文件 1:
NameVirtualHost 123.45.67.890:80
<VirtualHost 123.45.67.890:80>
ServerName example.com
RedirectPermanent / https://example.com/
# RewriteEngine On
# RewriteCond %{SERVER_PORT} !^443$
# RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]
# SSLRequireSSL
# Redirect permanent /secure https://example.com/
# Redirect / https://example.com/
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
从注释掉的行中可以看出,我尝试了几种方法。
文件2:
NameVirtualHost 123.45.67.890:443
<VirtualHost 123.45.67.890:443>
DocumentRoot "/opt/www/example-docroot"
ServerName example.com
DirectoryIndex index.html
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /etc/httpd/conf.d/ssl/example.com/csr.example.2011.pem.blade
SSLCertificateKeyFile /etc/httpd/conf.d/ssl/example.com/nokey.example.2011.pem
SSLCACertificateFile /etc/httpd/conf.d/ssl/example.com/CA.blade.2011.csr
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/etc/httpd/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
为了简单起见,删除了一些东西,更改了名称以保护无辜者。
我更新了服务器 /etc/httpd/vhosts 上的这些文件
然后运行
apachectl restart
Run Code Online (Sandbox Code Playgroud)
这确实给了我这些警告:
[warn] NameVirtualHost …Run Code Online (Sandbox Code Playgroud) 我有一个 virtualhost 指令,如果输入无效的子域,它会提供自定义 404 错误:
<VirtualHost *:80> # the first virtual host
ServerName site_not_found
RedirectMatch 404 ^/(?!custom_error)
</VirtualHost>
<VirtualHost *:80>
ServerName example.com
ServerAlias ??.example.com
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
我想设置一个虚拟主机以通过 HTTPS 连接显示相同的自定义错误。我尝试了以下方法:
<VirtualHost *:443> # the first virtual host
ServerName site_not_found
RedirectMatch 404 ^/(?!custom_error)
</VirtualHost>
<VirtualHost *:443>
ServerName example.com
ServerAlias ??.example.com
# SSL options, other options, and stuff defined here.
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
但是服务器不会启动并发出错误:
服务器应该是 SSL-aware 但没有配置证书 [提示:SSLCertificateFile] ((null):0)
即使没有为这个虚拟主机打开 SSLEngine,似乎也需要 SSL 证书。除了提供证书之外,还有没有办法解决这个问题?关闭模块不是一个选项,因为我需要为虚拟服务器 example.com 使用 SSL。
https ×10
ssl ×6
apache-2.2 ×3
security ×3
apple-ios ×1
certificate ×1
fortinet ×1
http ×1
iptables ×1
mod-ssl ×1
monitoring ×1
networking ×1
nginx ×1
openssl ×1
redirect ×1
tls ×1
ubuntu-12.04 ×1
virtualhost ×1
wireshark ×1