Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

svn Error validating server certificate

If I use any svn command communicating with the remote server I get the following error:

Error validating server certificate for 'https://...':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
Certificate information:
 - Hostname: ...
 - Valid: from Wed, 01 Sep 2010 08:25:36 GMT until Thu, 06 Oct 2011 08:25:36 GMT
 - Issuer: ...
 - Fingerprint: ...
(R)eject, accept (t)emporarily or accept (p)ermanently? 

If I hit permanently I can run the command properly. But on the next svn command I get the same question and have to confirm again! Why doesn't svn save my choice permanently? How can I solve this problem?

Thanks for any help!

like image 372
Alex Avatar asked May 24 '11 18:05

Alex


3 Answers

Fix (for Unix):

svn.ssl.server is on ~/.subversion/auth

  • Change Owner recursively on ~/.subversion/auth or delete:
    delete - ~/.subversion/auth/svn.ssl.server
    owner - chown -R $USER ~/.subversion/auth

  • Open the command prompt and run svn list https:...

  • Accept certficate permanently by entering p.

Have Fun !

like image 125
Lifely Avatar answered Nov 08 '22 22:11

Lifely


Search for the folder named "svn.ssl.server" (it exists for windows and *NIX servers) and delete it. You may be asked one more time to save the key but then it should stop asking after that point.

like image 42
cixelsyd Avatar answered Nov 08 '22 22:11

cixelsyd


Fix (for Windows):

  • Delete C:\Users\"USERNAME"\AppData\Roaming\Subversion\auth\svn.ssl.server
  • Open the command prompt and run svn list https:...
  • Accept certficate permanently by entering p.
like image 29
Charan Avatar answered Nov 08 '22 23:11

Charan