TLS Handshake
Client Server
Client Hello ----->
Server Hello
Certficate
[opt]Server Key Exchange
[opt]Certificate Request
<----- Server Hello Done
Certificate
Client Key Exchange
Certificate Verify
[Change Cipher Spec]
Finished ----->
[Change Cipher Spec]
<----- Finished
Application Data <----> Application Data
Client Hello
Field | Usage |
---|---|
Version | 客户端支持的TLS最高版本 |
Random | Client Nonce,计算Master密钥 |
Session ID | 标识一个会话 |
Cipher Suite | 客户端支持的加密算法列表,包含密钥交换算法、批量加密算法、MAC算法(Message Authentication Code)、伪随机数算法 |
Compression Method | 可选,压缩算法列表 |