当前位置: 首页 > 知识库问答 >
问题:

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

左丘兴生
2023-03-14
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
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.

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

共有1个答案

魏宏邈
2023-03-14

如果命令在不在同一个域(或IP)上的另一个服务器上工作,我将从刷新DNS开始,然后再试一次。证书提供的名称和/或IP可能与您试图连接到的域或IP不匹配。

 类似资料:
  • 本文向大家介绍Nginx单IP地址配置多个SSL证书的方法示例,包括了Nginx单IP地址配置多个SSL证书的方法示例的使用技巧和注意事项,需要的朋友参考一下 默认情况下,Nginx一个IP地址仅支持一个SSL证书,需要多个IP地址才能配置多个SSL证书,在公网IP地址有限的情况下,可以使用TLS Server Name Indication extension(SNI, RFC 6066),它允

  • 问题内容: 我正在尝试运行以下docker命令: 但是我得到了错误: 我知道我们公司会为https请求即时替换SSL证书。 我尝试通过以下方式来信任我们公司的CA证书: 和 但是它仍然无法正常工作。 有任何想法吗? 问题答案: 要将docker配置为与代理系统一起使用,您首先需要将HTTPS_PROXY / HTTP_PROXY环境变量添加到docker sysconfig文件中。但是,取决于您使

  • 问题内容: 我使用计算机通过以太网与硬件进行通信。为了与此设备通信,我将ip设置为192 168 0 11,子网掩码设置为255 255 255 0,对于IPv4,默认网关设置为192 168 0 1。要使用互联网,我可以通过控制面板选择“自动获取IP地址”。 我想要一个允许我快速选择一个或另一个以太网设置(硬件或Internet)的脚本。 我主要使用python编程,但也许有一个批处理文件解决方

  • 我最近为我的maven repo(Apache代理背后的人工制品)切换到了letsencrypt证书。通过浏览器访问回购协议工作正常,证书没有问题(下面的屏幕截图)。 如果我手动将证书导入到java密钥库中,它也可以工作。 但是根据这个SO问题,Java应该接受以8u101开头的lets加密证书。 我总是遇到这样的例外:

  • 我在唱Java和tring在广告中修改密码。我已将证书导入服务器,但证书中出现错误。 导入有效: 列表有效: 我的代码: 错误消息:

  • 我正在Windows7上运行PHP版本5.6.3作为XAMPP的一部分。 当我尝试使用Mandrill API时,我得到以下错误: 未捕获异常“Mandrill_HttpError”,消息为“API调用消息/send-template失败:SSL证书问题:无法获取本地颁发者证书” 我已经尝试了在StackOverflow上读到的所有内容,包括向php.ini文件添加以下内容: 当然可以从http: