Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http 如何加密 #27

Open
Jason-linjiayu opened this issue May 11, 2021 · 1 comment
Open

http 如何加密 #27

Jason-linjiayu opened this issue May 11, 2021 · 1 comment

Comments

@Jason-linjiayu
Copy link
Owner

Jason-linjiayu commented May 11, 2021

  • 客户端请求服务器获取 证书公钥
  • 客户端解析(SSL/TLS)证书
  • 生成随机值
  • 用公钥加密随机值生成秘钥
  • 客户端将 秘钥的发送给服务器
  • 服务端通过私钥解析秘钥得到随机值
  • 将信息和随机值混合在一起进行对称加密并返回给客户端
  • 客户端用秘钥解析信息
@Jason-linjiayu
Copy link
Owner Author

Jason-linjiayu commented May 11, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant