简体   繁体   English

Android VPN身份验证和加密

[英]Android VPN authentication and encryption

In the Android sample VPN app ToyVpn the handshake method says "To build a secured tunnel, we should perform mutual authentication and exchange session keys for encryption." 在Android示例VPN应用程序ToyVpn中 ,握手方法显示“要建立安全的隧道,我们应该执行相互身份验证并交换会话密钥以进行加密。”

Can anyone give or point me to some examples on how to do this? 任何人都可以给我一些例子或指导我做些什么?

Generally, not trivial. 通常,并非无关紧要。 You could use SSL mutual authentication (with a client key/certificate) to achieve this. 您可以使用SSL双向身份验证(带有客户端密钥/证书)来实现此目的。 Look at OpenVPN for inspiration. 查看OpenVPN以获得灵感。 If you don't know what 'mutual authentication' means, don't try to implement this, use a ready solution. 如果您不知道“相互认证”的含义,请不要尝试实现此目的,请使用现成的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM