服务器证书验证失败

问题描述:

当我在命令行中执行 svn 时:

When I execute svn in command line:

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

这会导致错误:

数组([0] => svn:提交失败(详情如下):[1] => svn:'svn url'的选项:服务器证书验证失败:证书已过期,颁发者不受信任(svn url:8443))

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

--trust-server-cert 的含义已更改,现在指定等效行为如下:

The meaning of --trust-server-cert has changed, equivalent behaviour is now specified like this:

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