SVN SSL握手失败:SSL错误:错误的数据包长度 [英] SVN SSL handshake failed: SSL error: bad packet length

查看:234
本文介绍了SVN SSL握手失败:SSL错误:错误的数据包长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SVN和Maven出现以下错误.我们使用Maven发布插件在svn中创建标签

We are getting the following error with SVN and Maven. We use maven release plugin to create a tag in svn

svn:"https://XXXXXXXXX/trunk"的选项:SSL握手失败:SSL错误:错误的数据包长度

svn: OPTIONS of 'https://XXXXXXXXX/trunk': SSL handshake failed: SSL error: bad packet length

maven命令的使用是buildnumber:create build-helper:parse-version release:prepare release:perform

maven command use is buildnumber:create build-helper:parse-version release:prepare release:perform

对这个SSL问题有任何想法吗?

Any thoughts on this SSL issue?

推荐答案

由于Apache Maven将使用操作系统中安装的svn客户端. 我们应该确保svn客户端正常工作.

Since the Apache Maven will use the svn client which is installed in our OS. We should ensure that our svn client is worked properly.

1.首先,我们应确保已安装svn客户端.

1.Firstly we should ensure that we have a svn client installed.

2.我们可以使用以下命令存储接受的根证书.

2.We can use the following command for storing the accepted root certificate.

svn list https://your_host/path/to/repo

The system will prompt you to accept it temporary or permanent. 
Please choose/type 'p' for permanent.

如果上述命令未完成或有一些错误,请按照以下替代方法进行操作.

If the above command is not completed or there are some error, please follow this as an alternative.

复制根证书,然后选择存储在以下文件夹之一中

Copy the root certificate and choose to store at one of the following folder

全球

Unix:
   /etc/subversion/auth/svn.ssl.server
Windows:
   %ALLUSERSPROFILE%\Application Data\Subversion\auth\svn.ssl.server

每位用户

Unix:
   ~/.subversion/auth/svn.ssl.server
Windows:
   %APPDATA%\Subversion\auth\svn.ssl.server

关于所选的根文件夹/what/ever/subversion ,我们将看到名为"服务器"的文件.请打开并放入以下行.

Regarding to the chosen root folder, /what/ever/subversion, We will see the file named "servers". Please open and put the following line.

ssl-authority-files =/what/ever/subversion/auth/svn.ssl.server/your_root.cer

3.我们可以使用与以下命令相同的命令来验证完成情况:-

3.We can verify the completion by using the same command as the following: -

svn list https://your_host/path/to/repo

系统将在您的存储库中打印文件.

The system will print the files inside your repository.

我希望这可以帮助达到要求.

I hope this may help to achieve the requirement.

此致

Charlee Ch.

Charlee Ch.

这篇关于SVN SSL握手失败:SSL错误:错误的数据包长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆