我正在尝试登录subversion,我已永久存储了证书,但我一直收到此错误:
RA层请求失败:
'/svn/QFlife/Projects%20DotNet/QFX/trunk/Clients'
上的PROPFIND请求失败:'/svn/QFlife/Projects%20DotNet/QFX/trunk/Clients'
的PROPFIND:服务器证书验证失败:发布者在list.pl上不受信任(https://vc.flife.de)升
这是代码,负责auth:
sub getauth
{
my $cred = shift;
$cred->username($user);
$cred->password($passwd);
}
my $ctx = SVN::Client->new
(
auth => [ SVN::Client::get_simple_provider(),
SVN::Client::get_simple_prompt_provider
(
\&getauth,2
),
SVN::Client::get_username_provider()
],
);
有人能告诉我我做错了什么吗?
答案 0 :(得分:1)
答案 1 :(得分:0)
如果您已永久添加证书,请将ssl_server_trust_file_provider添加到您的身份验证列表中:
my $ctx = SVN::Client->new(
auth => [ SVN::Client::get_simple_provider(),
SVN::Client::get_simple_prompt_provider(\&getauth,2),
SVN::Client::get_username_provider(),
SVN::Client::get_ssl_server_trust_file_provider()
],
);