TLS Handshake Fails and the Error Message "ssl handshake failure" Is Displayed
Symptom
Run the following command on the local host to establish a TLS1.0 connection with the specified server and obtain the certificate information:
openssl s_client -connect test.com:443 -tls1
The following error message is displayed.
CONNECTED(00000003) 140155533838224:error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version:s3_pkt.c:1493:SSL alert number 70 140155533838224:error:1409E0E5:SSL routines:ssl3_write_bytes:ssl handshake failure:s3_pkt.c:659: --- 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 No ALPN negotiated SSL-Session: Protocol : TLSv1 Cipher : 0000 Session-ID: Session-ID-ctx: Master-Key: Key-Arg : None Krb5 Principal: None PSK identity: None PSK identity hint: None Start Time: 1720443876 Timeout : 7200 (sec) Verify return code: 0 (ok) ---
Analysis
CodeArts Repo supports TLS1.2 and TLS1.3.
Solution
- Run the following command on the Git Bash client to check your Git version:
git --version
- If your Git is earlier than 2.6.0, upgrade it to the latest version. The latest Git supports TLSv1.2 by default. If your Git version is 2.6.0 or later, specify the TLS protocol version:
openssl s_client -connect test.com:443 -tls1_2
Client |
Description |
---|---|
Git Credential Manager for Windows< v1.14.0 |
TLSv1.2 is not supported. Upgrade the Git client to the latest version. Select to install the Git Credential Manager during the upgrade. |
Git on Red Hat 5 |
|
Git on Red Hat 6 |
Upgrade to 6.8 or a later version. |
Git on Red Hat 7 |
Upgrade to 7.2 or a later version. |
JDK7 |
TLSv1.0 is used in JDK 7 by default. Any client, such as Eclipse JGit, running on an earlier version of JDK is affected. This can be resolved by enabling TLSv1.2 in JDK 7. |
JDK6 or earlier |
|
Visual Studio |
|
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot