svn Error validating server certificate

后端 未结 8 602
太阳男子
太阳男子 2021-01-30 16:27

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

Error validating server certificate for \'https://...\':
 -         


        
相关标签:
8条回答
  • 2021-01-30 17:05

    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 !

    0 讨论(0)
  • 2021-01-30 17:08

    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.

    0 讨论(0)
  • 2021-01-30 17:17

    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.
    0 讨论(0)
  • 2021-01-30 17:23

    Probably not suitable for all users but is okay for me and worked:

    I edited in the ~/.subversion/servers the following line:

    [global]
    ssl-trust-default-ca = no
    

    to

    [global]
    ssl-trust-default-ca = yes
    
    0 讨论(0)
  • 2021-01-30 17:23

    chmod -R 775 ~/.subversion/auth may also be needed.

    0 讨论(0)
  • 2021-01-30 17:24

    Doing chmod 644 ~/.subversion/auth/svn.ssl.server/* is simplest for unix users and is best if you connect to multiple servers.

    0 讨论(0)
提交回复
热议问题