当前位置:网站首页>公钥私钥传输,以及对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的公钥是植入到操作系统的。
边栏推荐
- Outlook tutorial, how to create tasks and to DOS in outlook?
- Kubectl_ Easy to use command line tool: Oh my Zsh_ Tips and tricks
- MATLAB image defogging technology GUI interface - global balance histogram
- 2022 robocom world robot developer competition - undergraduate group (provincial competition) -- question 1: don't waste gold (finished)
- 【洛谷】P1908 逆序对
- Fastjson code execution cve-2022-25845
- Is it safe for Huatai Securities to open an account? I don't know how to operate it
- 3、 Set foundation ArrayList set and simple student management system
- 【tf.keras】:版本从1.x升级到2.x遇到的一个问题:InvalidArgumentError: Cannot assign a device for operation embedding_
- Huffman tree (optimal binary tree)
猜你喜欢

26.文件使用磁盘的代码实现

Kubectl_ Easy to use command line tool: Oh my Zsh_ Tips and tricks

2022 robocom world robot developer competition - undergraduate group (provincial competition) rc-u4 strategy team (completed)

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

Istio1.12:安装和快速入门

celery 启动beat出现报错ERROR: Pidfile (celerybeat.pid) already exists.
![[shaders realize pixelate mosaic effect _shader effect Chapter 7]](/img/0f/3e8d9468d94b14217875c7e447aa15.png)
[shaders realize pixelate mosaic effect _shader effect Chapter 7]

2022 robocom world robot developer competition - undergraduate group (provincial competition) -- fifth question tree and bipartite diagram (completed)

你不能只会flex居中布局,精制动画讲解所有flex布局方式!通俗易懂纯干货教程!...

YOLO5Face:为什么要重新发明人脸检测器
随机推荐
R语言ggplot2可视化:ggplot2可视化基本散点图(scatter plot)、通过在theme_bw中指定参数base_size来改变轴标签的大小、并控制网格线和轴标签的大小
Exomiser对外显子组变体进行注释和优先排序
上课作业(6)——#575. 单词的划分(word)
Automatic derivation of pytorch
Android SQLite database practice
Arduino IDE ESP32固件安装和升级教程
Analysis of some difficulties in VAE (variational self encoder)
【机器学习基础】——另一个视角解释SVM
Analysys analysis "2022 China data security market data monitoring report" was officially launched
Leetcode 1288. delete the covered interval (yes, solved)
Lsyncd搭建同步镜像-用Lsyncd实现本地和远程服务器之间实时同步
kubernetes GPU的困境和破局
C - partial keyword
2022 robocom world robot developer competition - undergraduate group (provincial competition) -- question 3 running team robot (finished)
mysql源码分析——索引的数据结构
4279. 笛卡尔树
2022 RoboCom 世界机器人开发者大赛-本科组(省赛)-- 第二题 智能服药助手 (已完结)
徽商期货平台安全吗?办理期货开户没问题吧?
JUC源码学习笔记3——AQS等待队列和CyclicBarrier,BlockingQueue
Getting started with mongodb