Flex 4.5 RemoteObject 和 AMFPHP over SSL,具有自签名证书
我正在尝试从 Flex 4.5 应用程序通过 SSL(自签名)连接到 AMFPHP。 这行得通吗?或者我需要权威机构签署的证书吗? 它会默默地失败还是像在浏览器中那样提示用户? 我需要如何编辑 services-config.xml 文件才能使其正常工作?
谢谢。
I'm trying to connect to AMFPHP over SSL (self-signed) from a Flex 4.5 application.
Will this work? Or do I need an authority-signed certificate?
Will it silently fail or prompt user like it does in browser?
How do I need to edit the services-config.xml file for this to work?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我以前这样做过,效果很好我建议的一件事是,您将 SWF 放在同一域/证书上,然后浏览器将提示用户在看到证书之前接受证书主权财富基金。一旦证书被手动接受,AMFPHP 的东西就可以正常工作了。默认的 services-config 应该可以正常工作,但您可以编辑它以仅接受 ssl 连接以提高安全性。我能立即记住的唯一 IE 问题是,如果您的服务器发送错误的缓存标头(无缓存),会有一个复选框,我认为,IE 只会显示一个 redx。通过更改 IE 中的复选框可以解决此问题。
我从未尝试过在 HTTP 上执行客户端页面并在 HTTPS 上执行服务,但我想您可能会遇到更多问题。
I've done this before, and it works fine The one thing I'd suggest is that you make your page that houses the SWF on the same domain/cert, then the browser will prompt the user to accept the certificate before they even see the SWF. Once the cert is manually accepted, the AMFPHP stuff works fine. The default services-config should work fine but you can edit it to accept ONLY ssl connections for more security. The only IE issue I can remember off the top of my head is that there's a checkbox if your server sends the wrong caching header (no-cache) I think, IE will simply show a redx. This is resolved by changing a checkbox in IE.
I've never tried doing the client page on HTTP and the services on HTTPS but I imagine you might run into more issues that way.