• Register
0 votes
486 views

Problem :

Has anyone faced this error before? I am new to SSL
javax.net.ssl.sslexception: received fatal alert: protocol_version
6 5 3
6,930 points

Please log in or register to answer this question.

2 Answers

0 votes

Solution :

I found bellow solution to your SSL Cert issue

java.lang.System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2");

This is necessary with Java 7 and a TLSv1.2 site.

I checked the site with:

openssl s_client -connect www.st.nmfs.noaa.gov:443

using

openssl version
OpenSSL 1.0.2l  25 May 2017

and got the result:

...
SSL-Session:
   Protocol  : TLSv1.2
   Cipher    : ECDHE-RSA-AES256-GCM-SHA384
...

Please note that older openssl version on my mac did not work so I had to use the macports one.

Further Readings:

9 7 4
38,600 points
0 votes

This error usually occurs when the user tries to establish the connection between the Jenkins and external applications.

Environment:

The following are the environments in which this error can occur;

  • CloudBees Core
  • CloudBees Jenkins Enterprise
  • CloudBees Jenkins Platform

Resolution:

  • This error indicates that an incorrect TLS version is being used between Jenkins and the external applications. Jenkins expects to use the TLS v1.2 but older plugins and applications may be using the v1.0 or v1.1.
  • First, the user can try settings the JVM argument –Dhttps.protocols=TLSv1.2 to make sure that Jenkins uses only TLS v1.2. If this method does not solve the issue, then the issue is with the plugin or the external application itself.
  • Also, make sure that your plugins are up to date and looking for any issue regarding the TLS connections if the issue is coming from a special plugin.
  • Check the external server to make sure that it is using the correct TLS version.

Example:

For example, a Windows Team Foundation Server may need to have registry key similar and added to enforce the use of TLS v1.2:

32 Bit (DWORD would be 32 bit)
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319] "SchUseStrongCrypto"=dword:00000001

64 Bit (DWORD would be 32 bit) 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]
"SchUseStrongCrypto"=dword:00000001

 

11 5 2
3,890 points

Related questions

0 votes
0 answers 3 views
3 views
Problem: I have a Java application, from which I am trying to connect to a https url but having issues with SSL ending up with the error: Received fatal alert: bad_record_mac (javax.net.ssl.SSLException)How can I go about further debugging this issue?
asked 1 day ago Moumita Bhowmick 12.4k points
0 votes
1 answer 475 views
475 views
Problem : I am trying to call an SSL protected web service running on JDK7 based client, but getting bellow error javax.net.ssl.sslexception received fatal alert unexpected_message
asked Nov 5, 2019 peterlaw 6.9k points
0 votes
1 answer 7 views
7 views
Problem: Javax.net.ssl.sslhandshakeexception received fatal alert bad_certificate.How to resolve this error?
asked Apr 18 sumaiya simi 43.9k points
0 votes
1 answer 5 views
5 views
Problem: Please help me to solve it out : javax net ssl sslhandshakeexception received fatal alert handshake_failure
asked Apr 7 rakib1 51.5k points
0 votes
0 answers 5 views
5 views
Problem: What are my options for resolving this problem? javax.net.ssl.sslhandshakeexception: received fatal alert: handshake_failure
asked Apr 7 rakib1 51.5k points
0 votes
3 answers 285 views
285 views
Problem : I am trying to setup a SSL Socket connection. But i am getting below error javax.net.ssl.sslhandshakeexception received fatal alert bad_certificate
asked Oct 23, 2019 peterlaw 6.9k points
0 votes
1 answer 703 views
703 views
Problem : I have a java complied package and it is sopposed to communicate with https server on net. But when i try running the compilation gives the following exception: javax.net.ssl.sslexception: unrecognized ssl message, plaintext connection?
asked Oct 23, 2019 peterlaw 6.9k points
0 votes
1 answer 3 views
3 views
Problem: In my Action, I am trying to send some data to the bank server but without any luck, because I have as a result from the server the following error: error: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
asked Mar 30 ummesalma 29.2k points
0 votes
1 answer 25 views
25 views
Has anyone encountered this error before?
asked Dec 28, 2020 TeamScript 13.5k points