问题描述
我在运行 ANT 脚本目标时遇到以下错误.错误消息说服务器证书验证失败".请帮助如何消除这个问题.我在 Windows XP 中工作.
I am getting below error when running a target of ANT script. Error message saying that "server certificate verification is failed". Please help how to remove this problem. I am working in Windows XP.
C:\apache-ant-1.8.1>ant checkout
Buildfile: C:\Program Files\Java\apache-ant-1.8.1\build.xml
checkout:
[svn] Using command line interface
Svn : Checking out a working copy from a repository :
co -r HEAD https://col.../trunk C:\ant-1.8.1\Test_Checkout
--username 69 --password *******--non-interactive
svn: PROPFIND request failed on '/svn/asia-pac-financials/trunk'
svn: PROPFIND of '/sv.../trunk':
Server certificate verification failed:
issuer is not trusted (https://col....com)
BUILD FAILED
C:\apache-ant-1.8.1\build.xml:16: Can't checkout
Total time: 3 seconds
推荐答案
你可以尝试手动运行一次 svn checkout
到你的 URL https://yoururl/trunk C:\ant-1.8.1\Test_Checkout
使用命令行并接受证书.
can you try to run svn checkout
once manually to your URL https://yoururl/trunk C:\ant-1.8.1\Test_Checkout
using command lineand accept certificate.
或者正如@AndrewSpear 在下面所说的
Or as @AndrewSpear says below
从终端 (Mac)/命令行 (Win) 手动运行 svn list https://your.repository.url
而不是签出,以获得永久接受证书的选项
Rather than checking out manually run svn list https://your.repository.url
from Terminal (Mac) / Command Line (Win) to get the option to accept the certificate permanently
svn 会要求您确认.永久接受.
svn will ask you for confirmation. accept it permanently.
之后这应该适用于来自 ant 脚本的后续请求.
After that this should work for subsequent requests from ant script.
这篇关于服务器证书验证失败:颁发者不受信任的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!