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

https #8

Open
nianxiongdi opened this issue Aug 27, 2019 · 0 comments
Open

https #8

nianxiongdi opened this issue Aug 27, 2019 · 0 comments

Comments

@nianxiongdi
Copy link
Owner

https

  • http的安全形式.
  • 所以的http请求和响应数据在网络发送前,都要进行加密.
  • http下面提供一个传输级的安全层(位于应用层和传输层之间).

对称加密 - 编/解码使用相同密钥算法

不对称加密 - 编/解码使用不同密钥算法

  • SSL(Secure Sockets Layer 安全套接层)是二进制协议

  • 过程

    1. 客户端建立一条到服务器端口443的连接.
    2. 当建立TCP连接,客户端和服务器就会初始化SSL层,进行握手.
    3. 对加密参数进行沟通,交换密钥.
    4. 若密钥交换成功,验证通过,则握手完成.
    5. 客户端将请求报文发生给安全层.
  • 参考

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