An error occurs when jenkins configures SVN to link https javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name

Learning jenkins, when configuring the SVN address, it will always report an error: when the address is https, it always reports an error! The reason is that the https certificate is generated and configured by itself, and all java1.7 and later versions cannot be recognized.

javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name

Solution 1: vi /$TOMCAT_HOME/bin/catalina.sh 

-Djsse.enableSNIExtension=false

Configuration location (near the JAVA_OPTS in the middle of the text):

Method 2: Start directly with java:

java -Djsse.enableSNIExtension=false -jar %JENKINS_HOME%\jenkins.war --httpPort=8000

Method 3: add it to the java source code and recompile;

System.setProperty("jsse.enableSNIExtension", "false");

 

After the configuration is successful, set the SVN to be normal:

Problems encountered with the first method:

The settings at the front end of the configuration file have never taken effect!

Reference address:

https://stackoverflow.com/questions/7615645/ssl-handshake-alert-unrecognized-name-error-since-upgrade-to-java-1-7-0

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325250374&siteId=291194637