简体   繁体   English

Jenkins:服务器 SSL 证书验证失败 - 发行者不受信任

[英]Jenkins: Server SSL certificate verification failed - issuer is not trusted

I am working with Jenkins to auto build.我正在与 Jenkins 合作进行自动构建。 I call a batch file in jenkins:我在 jenkins 中调用了一个批处理文件:

call Setup_trunk_01.bat调用 Setup_trunk_01.bat

The code of Setup_trunk_01.bat is: Setup_trunk_01.bat 的代码为:

svn propset svn:externals "https://svn02/vc/disney_kingdom_iphone/branches/maintenance/update12_gungho@90987 trunk" .
svn update .

and I have the error: svn: E230001: Server SSL certificate verification failed: issuer is not trusted我有错误: svn: E230001: Server SSL certificate verification failed: issuer is not trusted

When I call it manually, it works.当我手动调用它时,它可以工作。 But I can't change the code of Setup_trunk_01.bat.但是我无法更改Setup_trunk_01.bat 的代码。 I think the problem is in the credentials.我认为问题出在凭据上。 But I don't know what exactly error to fix.但我不知道到底要修复什么错误。

I guess that your SVN server has is using self-signed SSL certificate for HTTPS.我猜您的 SVN 服务器正在使用自签名 SSL 证书进行 HTTPS。 You should contact the system administrator and ask him to apply a valid server certificate that's signed by a trusted certificate authority.您应该联系系统管理员并要求他应用由受信任的证书颁发机构签署的有效服务器证书。

You can also make SVN client ignore this certificate warning by adding --trust-server-cert command line option to your command.您还可以通过在命令中添加--trust-server-cert命令行选项使 SVN 客户端忽略此证书警告。 BTW, don't forget to add --non-interactive option to your commands, too.顺便说一句,不要忘记在您的命令中添加--non-interactive选项。

If you want to use self-signed certificates: SSH on the Jenkins server and execute once on the command line:如果要使用自签名证书: Jenkins 服务器上的 SSH 并在命令行上执行一次:

svn list <REPO> --config-dir /var/lib/jenkins/.subversion/

Accept the self-signed certificate permanently.永久接受自签名证书。 That's it.就是这样。 --config-dir should point to the .subversion folder of the Jenkins instance. --config-dir应该指向 Jenkins 实例的 .subversion 文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 服务器证书验证失败:颁发者不受信任 - Server certificate verification failed: issuer is not trusted Cruise Control异常:服务器SSL证书验证失败:为其他主机名颁发的证书,不信任颁发者 - Cruise Control Exception : Server SSL certificate verification failed: certificate issued for a different hostname, issuer is not trusted svn:E230001:服务器 SSL 证书验证失败:颁发者不受信任 - svn: E230001: Server SSL certificate verification failed: issuer is not trusted svn命令行错误“服务器证书验证失败:发行者不受信任”我如何解决此错误? - svn command line error “Server certificate verification failed: issuer is not trusted” how can i resolve this error? 服务器证书验证失败 - Server certificate verification failed Subversion服务器SSL证书验证失败:和其他原因 - Subversion Server SSL certificate verification failed: and other reason(s) 使用SVN存储库设置ReviewBoard时,服务器SSL证书验证失败 - Server SSL certificate verification failed when setting up ReviewBoard with a SVN repo 无法发布mvn:准备,服务器证书验证失败 - Unable to mvn release:prepare, server certificate has failed verification svn SSL错误:证书验证失败? - svn SSL error: certificate verify failed? 使用jenkins连接到cloudforge svn返回SSL握手失败 - Connecting to cloudforge svn using jenkins returns SSL handshake failed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM