Failed to verify server certificate

When I execute svn on the command line:

command: svn commit path -m "Uploaded By User" --username username --password password --non-interactive --trust-server-cert --quiet 2>&1 

This will result in an error:

Array ([0] => svn: Commit failed (details follow): [1] => svn: OPTIONS "svn url": server certificate verification is not completed: certificate has expired, issuer is not trusted (svn url: 8443))

+3
source share
7 answers

Have you tried the --trust-server-cert option: it will ask you to accept / reject the certificate. --trust-server-cert is only available with svn 1.6

+3
source

I installed through the console:

 rm ~/.subversion/auth/svn.ssl.server/* 
+2
source

Tortoise SVN Solution:

I just happened to me today, working on Windows 7, trying to use svn from git bash. Any command that I used that tried to get to the server will receive the same: "Verification of the server certificate failed: the certificate has expired, the issuer is not trusted." Usually, just continuing to try to get to the server, you will call svn and ask if you trust the server. If you say yes, then everything will be fine.

However, this time there was none of this. I finally noticed that the svn that I used was part of the Tortoise SVN installation. So I stopped File Explorer and tried updating my directory using Tortoise controls.

The turtle did a great job. I got a window asking if I trusted the server. I said yes forever. Then he asked me to enter a username and password. After I gave this, Tortoise updated the folder, and when I tried to interact with the server via the command line, that was fine too.

Bottom line: If you use Windows using the svn command line as part of the Tortoise package, try updating it directly through the Tortoise controls.

+2
source

You are using an SSL connection to a web server (i.e. the path of your repository starts with https: //), and the certificate installed on this server is completed.

You will need to contact the server administrator to renew the certificate (or use non-SSL verification if this meets your security requirements).

0
source

This happened to me using the local PhpStorm environment, with a self-signed certificate on my server, which today started reporting the error "Error: Server SSL certificate" (it has expired), and I fixed it by going to the terminal and doing "svn update" to which he replied:

 Error validating server certificate for 'https://example.com:443': - The certificate is not issued by a trusted authority. Use the fingerprint to validate the certificate manually! - The certificate hostname does not match. - The certificate has expired. Certificate information: - Hostname: *.example.com - Valid: from Jun 6 13:18:35 2010 GMT until Jun 5 13:18:35 2015 GMT - Issuer: ( jonny@example.com ) - Fingerprint: **:**:**:**:**:**:**:**:**:**:**:**:**:etc (R)eject, accept (t)emporarily or accept (p)ermanently? 

The answer to "p" updated my trusted certificates, and everything was fine again.

However, use this if you really trust the server, of course!

Hope this helps someone else!

0
source

I had this problem, but with Netbeans 8.1 problem, I had the old repository URL for cvsdude, which is now cloud-based. So all I had to do was get in Team / Working Copy / Relocate and change the old url to a new one, and this fixed my problems.

0
source

The value of --trust-server-cert has changed; the equivalent behavior is now set as follows:

svn checkout https://your.repository.url / --non-interactive --trust-server-cert-failures="unknown-ca,cn-mismatch,expired,not-yet-valid,other" --username=blah --password=blah

0
source

Source: https://habr.com/ru/post/947727/


All Articles