Flex:是否有 SecureSockets?<策略文件请求>是否使用目标服务器公钥加密?
我有一个 Apache SSL 连接,可用于侦听端口 843 的 C# 服务器(我编写了一个基本的 C# 服务器,因为我不知道如何使 Apache 根据特定请求正确响应)。
使用 Socket 对象时,似乎一切都已找到并且连接获得批准,从而允许跨域通信,但是,当使用 SecureSocket 对象时,我得到的不是 而是很多乱码。
我一直试图弄清楚发生了什么,并假设是:
A. 使用连接目标私钥来加密请求。 B. 在发送请求之前尝试通过 SSL 验证自身身份。
我花了整整一周的时间试图弄清楚发生了什么,但没有运气,所以如果有人能够阐明 SecureSocket 对象处理跨域请求的方式,我将不胜感激。
另外,有没有办法使用普通的套接字并以某种方式获取信息?
此致,
迈克
I have an Apache SSL connection available with a C# server that listens to port 843 (i wrote a basic c# server since i don't know how to make Apache respond properly upon a specific request).
When using the Socket object, all seems to be find and the connection gets approved, thus allowing the crossdomain communication, however, when using a SecureSocket object, instead of getting , i get lots of gibberish.
I've been trying to figure out what's going on and assumed it's either:
A. using the connection target private key to encrypt the request.
B. trying to authenticate itself via SSL prior to sending the request.
I've spent the entire week trying to figure out whats going on with no luck so if someone can shed some light regarding the way that the SecureSocket obj deals with crossdomain requests it'll be greatly appreciated.
Also, is there a way to use a normal Socket and somehow get the information?
with regards,
Mike
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要设置启用 SSL 的策略服务器。使用 Apache 摆脱 SSL 通信和代理策略服务器对我来说不起作用,因为它抱怨方法不好。
我编写了一个简单的 Java 程序,使用与目标服务器相同的证书(我没有使用不同的证书进行测试,所以不知道它是否是强制性的)启用 SSL,以侦听端口 843 并使用策略重放。现在我可以与 SecureSockets 进行通信。
You need to set up a SSL enabled policy server. Using Apache to get rid of the SSL communication and proxy the the policy server didn't work for me as it complains on a bad method.
I wrote a simple java program SSL enabled using the same certificates that the target server (I haven't tested with a different one, so don't know if it's mandatory) to listen on port 843 and replay with the policy. Now I can communicate with SecureSockets.