SVN SSL handshake failed: SSL error: bad packet length

点点圈 提交于 2020-01-17 01:36:06

问题


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

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

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

Any thoughts on this SSL issue?


回答1:


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.Firstly we should ensure that we have a svn client installed.

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

Global

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

Per user

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

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.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.

Regards,

Charlee Ch.




回答2:


Are you using an old Subversion client/server? If it's a 1.4.6, you might be hitting a bug in Subversion (as describer here). You might want to try upgrading both the client and the server, if you're using a version that old.

If not, the other option would probably be that you might have to add the server's key to your keystore.



来源:https://stackoverflow.com/questions/6605893/svn-ssl-handshake-failed-ssl-error-bad-packet-length

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!