且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

服务器证书验证失败:颁发者不受信任

更新时间:2022-04-21 03:47:47

你可以尝试手动运行一次 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 line and 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.