【发布时间】:2021-05-10 18:08:48
【问题描述】:
如何修复 ERR_SSL_VERSION_OR_CIPHER_MISMATCH 错误?
在我们的一台 CentOS 服务器中,我们在 Chrome 中遇到以下错误
A secure connection cannot be established because this site uses an unsupported protocol with Error Code - ERR_SSL_VERSION_OR_CIPHER_MISMATCH
我们尝试了以下命令 - openssl s_client -connect <<domain>>:<<port>> -tls1_2
它给出以下输出。它不提供证书链和协商密码。
$ openssl s_client -connect <<domain>>:<<port>> -tls1_2
CONNECTED(00000003)
139874418423624:error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure:s3_pkt.c:1275:SSL alert number 40
139874418423624:error:1409E0E5:SSL routines:SSL3_WRITE_BYTES:ssl handshake failure:s3_pkt.c:598:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 7 bytes and written 0 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
SSL-Session:
Protocol : TLSv1.2
Cipher : 0000
Session-ID:
Session-ID-ctx:
Master-Key:
Key-Arg : None
Krb5 Principal: None
PSK identity: None
PSK identity hint: None
Start Time: 1505770082
Timeout : 7200 (sec)
Verify return code: 0 (ok)
我们使用命令 - # /usr/bin/openssl ciphers -v 检查了 VM 上的可用密码。此命令提供可用密码列表,其中还包括 TLS 1.2 支持的密码
我们还检查了证书。相同的证书适用于不同的服务器。
有人可以指导在这种情况下缺少什么吗?
【问题讨论】:
-
你可以尝试使用 curl 并检查它是否成功,而不是 openssl
标签: encryption tls1.2