Coder Social home page Coder Social logo

网络: HTTPS: 解读RFC2818 about blog HOT 1 OPEN

xvno avatar xvno commented on July 17, 2024
网络: HTTPS: 解读RFC2818

from blog.

Comments (1)

xvno avatar xvno commented on July 17, 2024

握手流程

  1. Handshake: ClientHello --->: ssl/tls version, supported cipher suit list
  2. Handshake: ServerHello <---: selected cipher suit
  3. Handshake: Certificate <---: 证书
  4. Handshake: ServerHelloDone <---: 告诉浏览器最初握手结束
  5. Handshake: ClientKeyExchange --->: 浏览器验证 S-3服务端发来的 证书的有效性, 并用解析出的PublicKey加密一个Pre-master secret发送给服务端
  6. ChangeCipherSpec --->: 告诉服务器以后要用对称加密咯
  7. Handshake: Finished --->: x1 能否协商成功, 就得看服务端能否解析这个报文.
  8. ChangeCipherSpec <---: 告诉浏览器服务端也要用对称加密了
  9. Handshake: Finished <---: x2 能否协商成功, 就得看服务端能否解析这个报文.

防止窃听/篡改/冒充

from blog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.