当前位置:网站首页>公钥私钥传输,以及对CA证书的理解
公钥私钥传输,以及对CA证书的理解
2022-07-24 15:36:00 【左海峰博客】
公钥和私钥的传输。
服务器,生成了一个公钥A和私钥B。私钥B自己拿着,然后将公钥A发送给全网。原本的操作时客户端拿到这个公钥后然后自己生成一个
私钥(对称秘钥),然后通过公钥(非对称秘钥)把这个私钥加密发给服务器。服务器拿到后通过私钥B把它解密。就拿到了客户端的私钥。
最后通过这个私钥进行对称加密进行相互通信了。
然后现在呢,黑客把客户端连接外界的网络全部给拦截了。黑客把公钥A换成了公钥A1,自己也生成一个私钥B1.然后将A1发送给客户端。
客户端收到A1后,把自己的私钥加密发出去。然后就被黑客拿到了。拿到之后通过自己的私钥B1解密拿到客户端的私钥。然后就可以借助
公钥A给服务器发数据了。
所以这个时候要解决的问题就是怎么让客户端拿到这个正确的公钥。就是相不相信这个公钥,这个时候就有相关的证明。我们相信CA认证
中心是可信的。经过CA认证的东西也都是可信的。通过CA证书,证书可以说明哪个ip对应哪个域名。证书里边也有公钥。
客户端认为是哪个域名发来的公钥。加强了一点安全性。但是因为CA证书任何人都可以发。黑客拿到服务器发送的CA证书将里边的信息
篡改。然后这样又把公钥A1发给了客户端。所以又不安全了。
最后怎么办呢,客户端就通过CA根证书来验证这个CA证书的正确性了。但是CA根证书该存到哪呢。只要是在网络中传输都有可能被黑客篡改。
那么只能存放到本地了。这个CA根证书和CA的公钥是植入到操作系统的。
边栏推荐
- Do you understand the working principle of gyroscope?
- 27.目录与文件系统
- MATLAB image defogging technology GUI interface - global balance histogram
- Hard core innovation that database needs to care about in the future
- Sklearn.metrics module model evaluation function
- ReentrantLock 可重入锁
- [quantitative test]
- matlab图像去雾技术GUI界面-全局平衡直方图
- 2022 RoboCom 世界机器人开发者大赛-本科组(省赛)RC-u4 攻略分队 (已完结)
- 2022 robocom world robot developer competition - undergraduate group (provincial competition) -- question 3 running team robot (finished)
猜你喜欢

2022 robocom world robot developer competition - undergraduate group (provincial competition) -- question 1: don't waste gold (finished)

Personal practical experience: Data Modeling "whether account data belongs to dimension or account domain"

【USENIX ATC'22】支持异构GPU集群的超大规模模型的高效的分布式训练框架Whale

【机器学习基础】——另一个视角解释SVM

未来数据库需要关心的硬核创新

Istio1.12: installation and quick start

Force button 31. Next arrangement -- double finger needling

JMeter - call the interface for uploading files or pictures

Yolo5face: why reinvent the face detector

ReentrantLock 可重入锁
随机推荐
25.从生磁盘到文件
kubernetes GPU的困境和破局
2022 robocom world robot developer competition - undergraduate group (provincial competition) CAIP full version solution
在LAMP架构中部署Zabbix监控系统及邮件报警机制
Research on stability of time-delay systems based on Lambert function
中信证券账户开通流程,手机上开户安全吗
Cloud development standalone image Jiugongge traffic main source code
How do novices buy stocks for the first time? Which securities company is the best and safest to open an account
2022 robocom world robot developer competition - undergraduate group (provincial competition) -- question 3 running team robot (finished)
未来数据库需要关心的硬核创新
iptables常用命令小清单
mysql源码分析——索引的数据结构
Which securities company is the best and safest to open an account? How to open an account and speculate in stocks
Reentrantlock reentrant lock
2022 RoboCom 世界机器人开发者大赛-本科组(省赛)-- 第三题 跑团机器人 (已完结)
Jmeter-调用上传文件或图片接口
Analysis of some difficulties in VAE (variational self encoder)
SQL row to column, column to row
微调LayoutLM v3进行票据数据的处理和内容识别
memcache缓存应用(LNMP+memcache)