标签: https

从 http 重定向到 https

我有一个运行在端口 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.comhttps://ci.mydomain.com.

http https iptables redirect

3
推荐指数
2
解决办法
2万
查看次数

如何使用 Wireshark 监控 HTTPS 流量?

可能的重复:
如何在使用 Wireshark 监控流量时过滤 https?

我想验证我添加到我的 iOS 应用程序的分析包是否正在尝试与分析服务器(我无法控制)通信。我认为分析包是通过 HTTPS 进行通信的。所以我想监控 HTTPS 流量(我不在乎解密它......我只是想看看它是否在那里)。

我怎样才能用 Wireshark 做到这一点? 例如,我当前的 Wireshark 设置(这只是默认设置)允许我监控到http://www.duckduckgo.com而不是https://www.duckduckgo.com 的流量。 我需要更改 Wireshark 中的某些设置吗?

谢谢!

monitoring https wireshark apple-ios

3
推荐指数
1
解决办法
1万
查看次数

将 CA 证书分配给 Fortigate https WAN 接口

我有一个 Fortigate 80C,它允许通过 https 进行远程管理。

我访问了 URL,一切都很好,但真正让我烦恼的一件事是在 chrome 中带来了“不受信任的连接”以及整个“点击继续”的事情。

目前,证书是由 Fortigate 单元自签名的。

在该设备上有 5 个 CA 签名证书可供使用,但我无法弄清楚如何将这些证书分配给路由器接口。

有谁知道如何将 CA 签名的证书分配给端口 443 上的 WAN 接口,以便它不会一直要求我确认证书?

(我知道流量仍然是加密的,但它仍然很好)

ssl certificate https ssl-certificate fortinet

3
推荐指数
1
解决办法
2万
查看次数

数据泄漏预防和 HTTPS 问题

我一直在研究几个数据泄漏/丢失防护套件,但在他们的文档中,我无法找到他们如何处理 HTTPS。

“泄漏向量”之一是通过 HTTPS 向 web 应用程序发送信息。在这种情况下,检测泄漏的唯一方法是对其进行解密。

但是,要做到这一点,它必须模仿远程服务器,使用假证书,就像中间人攻击一样。为了避免用户产生怀疑或抱怨,我猜公司需要在公司拥有的设备的浏览器上插入他们的证书作为有效的 CA。

我的问题是:

  • 有没有人在这种情况下有第一手经验?你能告诉我们你是如何实施的吗?
  • 我是对的还是有另一种管理 HTTPS 的方法(例如,通过代理检测桌面级别使用的数据)?

security https data-protection

3
推荐指数
1
解决办法
166
查看次数

自签名证书的安全性

如果我在客户端验证自签名 SSL 证书的指纹,是否还会发生中间人攻击?

security ssl https tls

3
推荐指数
2
解决办法
247
查看次数

信息曝光

我正在制作一个 iPhone 应用程序,它将通过 HTTPS 与我的服务器进行通信。编程到应用程序中的重要身份验证信息(用于访问应用程序特定内容)将发送到服务器。如果有人创建了一个安装在他们设备上的伪造 SSL 证书(该证书看起来像是来自我的网站)并将我的域名指向他们计算机的 IP 地址,他们是否有可能捕获身份验证信息和任何其他信息最初发送到服务器?谢谢你的帮助。

networking security domain-name-system ssl https

3
推荐指数
1
解决办法
64
查看次数

启用 mod ssl apache 后停止侦听端口 80

我有一个安装了 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)

ssl https zend-server-ce apache-2.2 ubuntu-12.04

3
推荐指数
1
解决办法
4387
查看次数

我可以将 HTTPS 流量从一个端口传递到另一个端口吗?

我做了proxy_pass端口80上的我的远程服务器上向前从8000从远程到我的本地主机8000,然后端口80。这很好用,但我也想用来做,但似乎需要一个有效的证书来传递流量。

有没有办法让我的远程服务器简单地将流量从端口 443 转发到 8443(然后我将远程 8443 转发到本地 443)。然后在我的开发机器上终止而不是需要在远程服务器上执行?

我的遥控器运行,我的 localhost 运行

ssl nginx https port-forwarding

3
推荐指数
1
解决办法
4027
查看次数

Apache 从 http 重定向到 https 不起作用

我有以下配置文件:

文件 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)

https virtualhost apache-2.2

3
推荐指数
2
解决办法
6万
查看次数

如何在没有 SSL 证书的情况下运行虚拟主机 443?

我有一个 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。

ssl https mod-ssl openssl apache-2.2

3
推荐指数
1
解决办法
1万
查看次数