Jenkins颠覆-javax.net.ssl.SSLHandshakeException:没有适当的协议(已禁用协议或密码套件不合适)

时间:2018-10-02 10:34:19

标签: jenkins jenkins-plugins

我正在尝试为我的Jenkin目标之一配置SVN存储库。但是当尝试使用https协议和用户名/密码连接svn存储库时

FAILED: org.tmatesoft.svn.core.SVNErrorMessage: svn: OPTIONS /svn/BSS_CORE_SYSTEMS/ATG/branches/Release_1_1_MASTERLIB failed
javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
    at sun.security.ssl.Handshaker.activate(Handshaker.java:503)
    at sun.security.ssl.SSLSocketImpl.kickstartHandshake(SSLSocketImpl.java:1492)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1361)
    at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:757)
    at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.sendData(HTTPConnection.java:229)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest.dispatch(HTTPRequest.java:166)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:364)
Caused: org.tmatesoft.svn.core.SVNErrorMessage: svn: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:101)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:389)
Caused: org.tmatesoft.svn.core.SVNErrorMessage: svn: OPTIONS request failed on '/svn/BSS_CORE_SYSTEMS/ATG/branches/Release_1_1_MASTERLIB'
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:200)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:642)
Caused: org.tmatesoft.svn.core.SVNException: svn: OPTIONS request failed on '/svn/BSS_CORE_SYSTEMS/ATG/branches/Release_1_1_MASTERLIB'
svn: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:644)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:285)

1 个答案:

答案 0 :(得分:0)

当您的SVN服务器使用Java删除了对它的加密密码套件时,会发生这种情况。随着时间的推移,Java has removed support出于安全原因使用了较弱的加密方法。

如果可以的话,您最好的选择是升级Subversion服务器的加密协议。迁移到TLS 1.2或TLS 1.3应该可以解决此问题。

如果无法执行此操作,则需要通过编辑java.security文件并调整此行以删除SVN服务器的套件,来调整运行Jenkins的JVM的安全策略以允许不安全的加密协议。需求:

jdk.tls.disabledAlgorithms=SSLv3, RC4, MD5withRSA, DH keySize < 1024, \
EC keySize < 224, DES40_CBC, RC4_40, 3DES_EDE_CBC

如果您需要确定SVN服务器支持的check out this answer over on Super User密码套件。