Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Svn SSL:目标更改ip地址后无法识别证书_Svn_Ssl_Openssl_Debian_Ssl Certificate - Fatal编程技术网

Svn SSL:目标更改ip地址后无法识别证书

Svn SSL:目标更改ip地址后无法识别证书,svn,ssl,openssl,debian,ssl-certificate,Svn,Ssl,Openssl,Debian,Ssl Certificate,将IP地址更改为SVN服务器后,我尝试使用命令svnrelocate./在Linux机器上重新定位存储库(Debian Squeeze)。但我遇到了以下错误: svn: E120171: Unable to connect to a repository at URL 'https://xxx.xxx.xxx.xxx/svn' svn: E120171: Error running context: An error occurred during SSL communication svn:E

将IP地址更改为SVN服务器后,我尝试使用命令
svnrelocate./
在Linux机器上重新定位存储库(Debian Squeeze)。但我遇到了以下错误:

svn: E120171: Unable to connect to a repository at URL 'https://xxx.xxx.xxx.xxx/svn' svn: E120171: Error running context: An error occurred during SSL communication svn:E120171:无法连接到URL'处的存储库https://xxx.xxx.xxx.xxx/svn' svn:E120171:运行上下文时出错:SSL通信期间出错 对于
svn ls

同时,我也会发现curl的错误:

curl -v https://xxx.xxx.xxx.xxx/svn/directory * About to connect() to xxx.xxx.xxx.xxx port 443 (#0) * Trying xxx.xxx.xxx.xxx... connected * Connected to xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) port 443 (#0) * successfully set certificate verify locations: * CAfile: none CApath: /etc/ssl/certs * SSLv3, TLS handshake, Client hello (1): * SSLv3, TLS handshake, Server hello (2): * SSLv3, TLS handshake, CERT (11): * SSLv3, TLS alert, Server hello (2): * SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed * Closing connection #0 curl: (60) SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed More details here: http://curl.haxx.se/docs/sslcerts.html curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. 旋度-vhttps://xxx.xxx.xxx.xxx/svn/directory *即将连接()到xxx.xxx.xxx.xxx端口443(#0) *正在尝试xxx.xxx.xxx.xxx。。。有联系的 *连接到xxx.xxx.xxx.xxx(xxx.xxx.xxx.xxx)端口443(#0) *已成功设置证书验证位置: *卡菲尔:没有 CApath:/etc/ssl/certs *SSLv3,TLS握手,客户端hello(1): *SSLv3,TLS握手,服务器hello(2): *SSLv3,TLS握手,证书(11): *SSLv3,TLS警报,服务器你好(2): *SSL证书问题,请验证CA证书是否正常。细节: 错误:14090086:SSL例程:SSL3\u获取\u服务器\u证书:证书验证失败 *正在关闭连接#0 curl:(60)SSL证书问题,请验证CA证书是否正常。细节: 错误:14090086:SSL例程:SSL3\u获取\u服务器\u证书:证书验证失败 详情如下:http://curl.haxx.se/docs/sslcerts.html curl默认情况下使用“bundle”执行SSL证书验证 颁发证书机构(CA)公钥(CA证书)。如果默认 捆绑文件不足,您可以指定一个备用文件 使用--cacert选项。 如果此HTTPS服务器使用由中表示的CA签名的证书 对于捆绑包,证书验证可能由于错误而失败 证书有问题(可能已过期,或者名称可能已过期) 与URL中的域名不匹配)。 如果要关闭curl对证书的验证,请使用 -k(或--unsecure)选项。 在另一台服务器上,相同的命令正常工作,没有错误。 这是一个证书问题吗?我怎么能接受呢


通常程序会问我是否必须永久接受它。为什么不再发生这种情况?

如果该命令在不在同一域(或IP)上的其他服务器上运行,我将首先刷新DNS,然后重试。证书提供的名称和/或IP可能与您尝试连接的域或IP不匹配。

我们需要服务器名称或IP地址来检查。从臀部拍摄,“证书验证失败”表示名称不匹配。您可能需要服务器上的新证书,或者需要信任其他CA。