简体   繁体   中英

How to solve svn: E230001: Unable to connect to a repository at URL and svn: E230001: Server SSL certificate untrusted error?

How do I solve this error:

Error

Source control operation failed:
svn: E230001: Unable to connect to a repository at URL 'Url path'
svn: E230001: Server SSL certificate untrusted

the certificate is probably user based. if you run CCNet console and not CCNet service, does it work ?

if so, run CCNet service as that user.

There are two issues in latest Subversion 1.8 regarding SSL certificate verification:

  1. Check for hostname is case-sensitive, while it should be case-insensitive
  2. Subversion doesn't display reason why certificate is not trusted

Both issues fixed in Subversion 1.8.3: http://svn.apache.org/repos/asf/subversion/tags/1.8.3/CHANGES

  • ra_serf: ignore case when checking certificate common names (r1514763)
  • ra_serf: output ssl cert verification failure reason (r1514785 et al)

So I recommend you upgrade to Subversion 1.8.3 and see why certificate is not trusted.

If you trust the server (ie local network) you can ignore the cert. Just add this parameters:

--non-interactive --trust-server-cert

Example:

svn info -r HEAD --non-interactive --trust-server-cert

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM