Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Hangs on "Error validating server certificate" #51

drestuart opened this Issue · 24 comments

I'm trying to check out from my repo, and svn2git is hanging on this error:

"Error validating server certificate for '':

  • The certificate is not issued..." etc.

This message is only printed if I run with the -v flag; without, I get nothing. In either case, svn2git sits doing nothing (as far as I can tell) and not giving me any feedback. This should cause svn2git to either quit, or print a reassuring message about how it's forging ahead.


Can you check what git-svn does here? We just wrap up git-svn, ultimately, and I'm guessing that's what's blocking for input.


+1 I get this issue too


Accepting it permanently fixes the issue for svn2git


Hisham: Can you give more info on your workaround? Here's what I'm trying:

$ git svn clone https://myrepo
[Accept certificate (p)ermanently when prompted]
[wait for project to download]

$ svn2git -v https://myrepo

And svn2git still waits for my input, whether I'm in the same directory or not. I'm on Windows XP, if that's at all relevant.


For some reason on my computer once I answer the question once it doesn't ask me again. Maybe because I do the command in the same directory. I'm running Mac OSX.

svn2git eventually does fail for me though, but on an unrelated error:

Auto packing the repository for optimum performance. You may also
run "git gc" manually. See "git help gc" for more information.
fatal: refs/remotes/svn/trunk: not a valid SHA1
update-ref refs/heads/master refs/remotes/svn/trunk: command returned error: 128
command failed:
2>&1 git svn fetch


Interesting. I'll try it out on my Mac and post an update.


Confirmed, that workaround works for me too on OS X.


I'm not sure there's a great fix for this other than detecting the prompt and passing through STDIN. If anyone knows of an argument to git that would skip certificate verification, that would be great.


Running into this issue migrating a Codeplex project to host on github
The following might help regarding skipping cert verification:



The following might help regarding skipping cert verification:....
Unfortunately this still doesn't make svn2git to work :(.

IMO this issue is a blocker, since most "company intranet" SVN repositories are self signed, thus svn2git won't work for the majority of real use cases :(.


I was able to get past this by running with the -v flag and entering "t" a couple of times. Not ideal, though.


This workaround worked for me: Use the --verbose flag. When it stops, press 'p' for permanently accept, then Enter. Type your password, then Enter.


@lornemcintosh solution works for me


I'm a complete svn2git/git rookie, but I'll just add that I got that same error even with a valid, CA-signed (wildcard) certificate.


lornemcintosh's workaround worked for me.

The real problem is that it doesn't write what it is waiting for until after you have made your choice.


It took a bit of effort, but svn2git should pass STDIN in through to the underlying git-svn process as of the 2.3.0 release. This should allow you to respond to the prompt and accept or reject the certificate. Please re-open if you find otherwise.

@nirvdrum nirvdrum closed this

This issue appears to still exist in svn2git-2.3.2


@Burstaholic What locale are you using?



Is that what you need?


drestuart's workaround works.


Issue still exists. Just keep entering the choice (t or p followed by Enter) over and over till it starts doing something.


I can try to fix this again, but git-svn certainly doesn't make it easy :-/


I wouldn't bother, the workaround is cromulent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.