Achieve secure and reliable network connection

9601136-4fe8f7c694743f1c.PNG
Directory .PNG
9601136-ca678d58067a1141.PNG
The method of the Http request .PNG

HTTP request process:
the domain name is resolved to IP
establishment Socket connection
transmitting an HTTP request
to receive data

9601136-166efe3a214b6bb0.PNG
HTTP request process .PNG

DNS poisoning how to do?
OkHttpClient have set the domain and dns verification methods
to achieve Dns Interface

9601136-f73486018b0dc203.PNG
DNS process .PNG

Https build process:
symmetric encryption
asymmetric encryption
public key of how to ensure safety?

9601136-e9c7832ee38dc9bb.PNG
Message Digest _ digital certificate _CA.PNG
9601136-07a88244f732ea66.PNG
Https communication flow .PNG

Middle attack

9601136-0ca3e4adc83e4353.PNG
Middle attacks .PNG
9601136-913760c89209a1b8.PNG
How Android application to prevent MITM.PNG
9601136-b166a473a2f89807.PNG
How Android application to prevent MITM (2) .PNG

Reproduced in: https: //www.jianshu.com/p/e7da2cdda877

Guess you like

Origin blog.csdn.net/weixin_34082695/article/details/91248219