RSA 加密 Diffie-Hellman 握手

发布于 2024-08-30 07:37:36 字数 274 浏览 1 评论 0原文

RSA 加密的 Diffie-Hellman 握手能否实现安全通信? 我正在加密从 silverlight 客户端到 php web 服务的通信。 silverlight 客户端通过将 RSA 公钥加密的 DH 参数发送到 Web 服务来启动密钥协商。只有 Web 服务拥有私钥,因此不可能进行 MITM 攻击。 Web 服务将纯文本答案发送回客户端,并商定密钥。然后,该密钥用于使用 AES 对 Web 服务和 silverlight 客户端之间的通信进行加密,该通信也使用 RSA 公钥进行加密。

有人看到缺陷吗?

Would a RSA encrypted Diffie-Hellman handshake enable secure communication?
I'm encrypting communication from a silverlight client to a php webservice.
The silverlight client initiates they key agreement by sending the RSA public key encrypted DH parameters to the webservice. Only the webservice has the private key, so a MITM attack is not possible. The webservice sends plain text answer back to the client, and a key is agreed upon. This key is then used to encrypt communication between the webservice and silverlight client with AES, which is also encrypted with the RSA public key.

Does anyone see a flaw?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

亣腦蒛氧 2024-09-06 07:37:37

无法在您的应用程序中安全地存储“私钥”。

There is no way to store a "private" key in your application securely.

抚笙 2024-09-06 07:37:36

与仅使用 SSL 和嵌入在客户端中的服务器证书以及使用 DH 密钥交换的密码套件相比,这并没有给您带来任何好处。

This gains you nothing over just using SSL with a server certificate that's embedded in the client, and a cipher suite that uses DH key exchange.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文