ssl - HTTPS 和证书

标签 ssl https ssl-certificate

HTTPS 如何接受证书?

最佳答案

非常简单地讲了一个小故事:

Client : (Connects to the server and, sticks out it's hand) "Hello! Here are my encryption details."

Server : (Takes hand of the client) "Hello. Here are my encryption details. Here is my certificate." (Handshake negotiation complete. Client check the cerificate)

Client : Great, here's my key! So from now on everything is encrypted using this key. OK?

Server : OK! (SSL Handshake complete)

Client : Great, Here comes my data over HTTP!!

Certificates用于 SSL handshake .服务器交给客户端的证书是signed通过 Certificate Authority (CA) 类似于 VeriSign,并且特定于服务器。 SSL 握手中会进行各种检查。需要了解的重要事项之一是证书的 Common Name 属性必须与服务器的主机/DNS 名称相匹配。

客户端有一份 CA 的 public certificate (key)因此可以使用它(例如用 SHA1 计算)来查看服务器的证书是否仍然正常。

关于ssl - HTTPS 和证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5603052/

相关文章:

SSL 证书 - 浏览器中的证书路径不同于证书链文件

具有自定义基本身份验证的 WCF 安全性

html - 编程中http和https有什么区别

.htaccess : http to https redirection does not work

certificate - 如何使用 openssl 将 .csr 转换为 .crt?

具有不同用户证书的 Java Rest 调用

java - 是否可以使用java套接字从客户端发送sslv2hello消息

java - 是否可以在 netty 服务器上的两个不同端口上打开两个单独的连接?

scala - 如何从证书链、证书和私钥正确配置 HTTPS?阿卡 HTTP

ssl - 错误 : unable to verify the first certificate/How to trust all certificates?