curl: (51) Unable to communicate securely with peer: requested domain name does not match the server

这篇具有很好参考价值的文章主要介绍了curl: (51) Unable to communicate securely with peer: requested domain name does not match the server。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

问题图:
curl: (51) Unable to communicate securely with peer: requested domain name does not match the server

问题原因:
该问题是由于无法与对等体安全通信,请求的域名与服务器的证书不匹配,可以理解为https证书加密的问题。

解决方法:
可以在curl后面加上相关参数,由于我们需要访问的是https的加密链接,需要加上:–insecure(或-k),
效果图如下:
curl: (51) Unable to communicate securely with peer: requested domain name does not match the server
关于curl更多的用法,可以通过curl --help知悉文章来源地址https://www.toymoban.com/news/detail-508334.html

到了这里,关于curl: (51) Unable to communicate securely with peer: requested domain name does not match the server的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • unable to find valid certification path to requested target

    调用https接口时出现该异常, Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target   原因是可以看上图,因为本地没有目标服务器证书导致。解决此方法的两种方案,1.在运行

    2024年02月02日
    浏览(38)
  • Git:Unable to negotiate with错误

    今天更新了一下Git版本,发现推送代码的时候提示 Unable to negotiate with xx.xx.xx.xx port 29418: no matching host key type found. Their offer: ssh-rsa,ssh-dss fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 查了一下资料,解决办法记录一下: 解决方案

    2024年02月13日
    浏览(33)
  • 【Git】解决fatal: unable to access..Failure when receiving data from the peer或者OpenSSL SSL_read: Connect

    今天拉取仓库的代码时,报错如下: 又或者 OpenSSL SSL_read: Connection was reset, errno 10054 再或者: 解决办法: 因为git在拉取或者提交项目时,中间会有git的http和https代理,但是我们本地环境本身就有SSL协议了,所以取消git的https代理即可,不行再取消http的代理。 第一种方式就是

    2024年02月04日
    浏览(46)
  • 报错 unable to find valid certification path to requested target executing

    提示信息: 审核失败!sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target executing POST 。。。 。。。 出现原因 这个问题的根本原因是你安装JDK时,Javajar 1.8.0_141libext里面缺少了一

    2024年02月03日
    浏览(34)
  • Unable to find GatewayFilterFactory with name TokenRelay

    Spring Cloud Gateway 网关作为代理资源服务器,需要将 JWT 传递给下游资源服务器,下面是网关的配置 TokenRelay 激活 TokenRelayGatewayFilterFactory,将令牌中继传递给下游资源服务,例如系统服务 (youlai-system) 但是项目启动中会报错: 参考链接:Spring Gateway and Auth0: IllegalArgumentException:

    2024年02月07日
    浏览(49)
  • Maven 私服 unable to find valid certification path to requested target 错误

    你遇到的错误信息 “sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target” 表明在 SSL/TLS 握手过程中,证书路径验证失败。这通常是由于缺少或不受信任的证书导致的,Maven 无法与远

    2024年02月08日
    浏览(39)
  • https请求报错unable to find valid certification path to requested target解决

            在Java项目中请求HTTPS时,可能会遇到 \\\"unable to find valid certification path to requested target\\\" 错误。这个错误通常是由于SSL证书问题引起的。要解决此问题,可以尝试以下方法 1.忽略SSL验证         OkHttpClient封装请求         HttpURLConnection请求         RestTemplate请求

    2024年02月08日
    浏览(36)
  • 彻底解决:SunCertPathBuilderException: unable to find valid certification path to requested target错误的方法

    请求12306系统查票。之前正常的,现在提示这样的错误: Exception in thread \\\"main\\\" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 如下图:  导致原因:由

    2024年02月05日
    浏览(38)
  • Unable to add a source with url `` named `-1`.

    今天在发布私有库的时候,执行 pod repo push name name.podspec --allow-warnings --verbose .的时候遇到下面这个错误 Unable to add a source with url `` named -1 . (/usr/bin/git clone – -1 fatal: repository ‘’ does not exist ) You can try adding it manually in /Users/****/.cocoapods/repos or via pod repo add . 解决方法: pod rep

    2024年02月15日
    浏览(27)
  • vscode报错“Unable to start debugging”“GDB Failed with message:”

    1、正常打开文件夹,新建一个cpp;  2、配置编译器,ctrl shift p,C/C++,edit configration ui 3、运行,启动调试,弹出任务,默认选择第一个, 直接报错“Unable to start debugging”“GDB Failed with message:”  此时,有怀疑路径中文的,怀疑项目,千奇百怪,本质原因是第3步选择,编译

    2024年02月16日
    浏览(36)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包