简体   繁体   English

SSL/TLS 证书的用途

[英]Purpose of a SSL/TLS certificate

I have been reading about ssl/tls and certificates recently to enable https for one of our websites.我最近一直在阅读有关 ssl/tls 和证书的信息,以便为我们的一个网站启用 https。

As far as my current understanding goes, a ssl/tls certificate verifies that we as client are connected to the correct site or not.就我目前的理解而言,ssl/tls 证书可以验证我们作为客户端是否连接到正确的站点。 For that the signature inside of the certificate is used to verify whether the certificate is legitimate or not.为此,证书内部的签名用于验证证书是否合法。 And finally to establish a secure connection algorithms like ECDHE (Elliptic curve Diffie–Hellman) are used.最后建立一个安全的连接算法,如 ECDHE(椭圆曲线 Diffie-Hellman)。

My question is if I want to connect to a website say, "www.mysite.com" and I key in "www.mysite.com" into my browser address bar, I am guaranteed that I will be connected to the correct website.我的问题是,如果我想连接到一个网站,比如“www.mysite.com”并在浏览器地址栏中输入“www.mysite.com”,我可以保证我将连接到正确的网站。 So what is the purpose of having a SSL/TLS certificate installed on a web server when I know that I am keying in the proper address.那么,当我知道我正在键入正确的地址时,在 web 服务器上安装 SSL/TLS 证书的目的是什么。

Am I missing something in my understanding of how https works?我对 https 如何工作的理解是否遗漏了什么?

Also ECDHE algorithm does not rely on any information like public key from the certificate to establish a secure connection.此外,ECDHE 算法不依赖任何信息,如证书中的公钥来建立安全连接。

... if I want to connect to a website say, "www.mysite.com" and I key in "www.mysite.com" into my browser address bar, I am guaranteed that I will be connected to the correct website. ...如果我想连接到一个网站,比如“www.mysite.com”,然后在浏览器地址栏中输入“www.mysite.com”,我可以保证我将连接到正确的网站。

You are not.你不是。 With a variety of techniques like DNS spoofing, ARP spoofing, hijacked SoHo routers, ... it is possible that an attacker reroutes your traffic so that it ends up at a server controlled by the attacker and not the actual server you want to.使用 DNS 欺骗、ARP 欺骗、劫持 SoHo 路由器等各种技术……攻击者可能会重新路由您的流量,使其最终到达攻击者控制的服务器,而不是您想要的实际服务器。 Validating that the certificate you've got from the server is the expected one protects against such attacks.验证您从服务器获得的证书是预期的证书可以防止此类攻击。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM