网站https加密

When a client (e.g., a web browser) establishes a secure HTTPS connection with a server, the following steps occur to ensure the security of the communication:

  1. The client initiates the HTTPS connection by requesting a secure resource from the server, typically by entering a URL that begins with "https://".

  2. The server responds by sending its SSL/TLS certificate to the client, which contains the server's public key and other identifying information.

  3. The client verifies the certificate by checking that it has been signed by a trusted Certificate Authority (CA) and that the domain name in the certificate matches the domain name in the URL.

  4. The client generates a random symmetric key to use for encryption and sends it to the server, encrypted with the server's public key.

  5. The server decrypts the symmetric key using its private key and sends an acknowledgement to the client that the key exchange is complete.

  6. The client and server now use the symmetric key to encrypt and decrypt all data that is transmitted between them for the remainder of the session.

  7. At the end of the session, the client and server both delete the symmetric key and the secure connection is terminated.

This process ensures that all data transmitted between the client and server is encrypted using a shared secret key that is known only to the two parties, making it very difficult for an attacker to intercept and read the data. The use of public-key cryptography to securely exchange the symmetric key ensures that the key exchange itself is also secure.

 

 

作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(18)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2022-04-03 经济危机是什么?
2021-04-03 Sidecar pattern
2020-04-03 Using .NET Standard with Full Framework .NET
2020-04-03 Publish .net standard library with all it's dependencies?
2020-04-03 Visual Studio displaying errors even if projects build
2020-04-03 vs code编译
2019-04-03 Why there is two completely different version of Reverse for List and IEnumerable?
点击右上角即可分享
微信分享提示