how-https-works

https://strongarm.io/blog/how-https-works/

核心问题;
取得要访问网站的非对称加密的public key

Bringing it All Together

Now we’ve talked about every step involved in HTTPS authenticating the websites you visit. Let’s put it all together, step by step, continuing to use Facebook as our example website and DigiCert as our example CA.

Facebook requests a certificate from DigiCert
DigiCert verifies that they are really talking to Facebook
Facebook sends DigiCert their public key
DigiCert uses their private key to digitally sign Facebook’s public key
DigiCert gives Facebook the signed public key
This is now Facebook’s SSL Certificate
You connect to Facebook’s website
Facebook sends you their SSL Certificate
Using the DigiCert public key in your root certificate store, you verify DigiCert’s signature on Facebook’s SSL Certificate
You generate a secret key, and use Facebook’s public key from their certificate to encrypt it.
You send the encrypted secret key to Facebook
Facebook decrypts it with their private key, and holds on to it.
You and Facebook use the shared secret key to encrypt your web traffic.
And now you’re done! We have achieved robust authentication. So long as DigiCert remains trustworthy, you can be confident that sites with their certificates are who they say they are.

取得非对称加密 public key 之后的流程

4165335-d6725bda275cd3fc.png
image.png
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值