修复CURL(51)SSL错误:没有备用证书主题名称匹配 [英] Fix CURL (51) SSL error: no alternative certificate subject name matches

查看:8313
本文介绍了修复CURL(51)SSL错误:没有备用证书主题名称匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是CURL世界的新人,来自Windows + .NET域。



尝试访问Rest API以进行基本身份验证http://www.evercam.io/docs/api/v1/authentication

  curl -X GET https://api.evercam.io/v1 / ... \ 
-u {username}

在CURL设置成功后,不知道如何在Windows命令提示符下使用此命令。测试CURL如下:

  C:\> curl --version 
curl 7.33.0(x86_64- pc-win32)libcurl / 7.33.0 OpenSSL / 0.9.8y zlib / 1.2.8 libssh2 / 1.4.3
协议:dict文件ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp s
ftp smtp smtps telnet tftp
特性:AsynchDNS GSS-Negotiate Largefile NTLM SSL SSPI libz

  C:\> curl -u myuser:mypassword -X GET https://api.evercam结尾。 io / v1 / 
curl:(51)SSL:没有备用证书主题名称匹配目标主机名'api.evercam.io'

如何解决此SSL问题51错误?

解决方案

要关闭curl对证书的验证,请使用 -k (或 - 不安全)选项。 >

更多可以在这里找到: http://curl.haxx.se /docs/sslcerts.html


I am new to CURL world, coming from Windows + .NET domain.

Trying to access Rest API for basic authentication at http://www.evercam.io/docs/api/v1/authentication.

curl -X GET https://api.evercam.io/v1/... \
-u {username}

Don't know how to use this command on windows command prompt after having CURL setup successfully. Tested CURL as follows:

C:\>curl --version
curl 7.33.0 (x86_64-pc-win32) libcurl/7.33.0 OpenSSL/0.9.8y zlib/1.2.8 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp s
ftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate Largefile NTLM SSL SSPI libz

Now i am ending with this

C:\>curl -u myuser:mypassword -X GET https://api.evercam.io/v1/
curl: (51) SSL: no alternative certificate subject name matches target host name 'api.evercam.io'

How can I fix this SSL issue 51 error ?

解决方案

If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.

More can be found in here: http://curl.haxx.se/docs/sslcerts.html

这篇关于修复CURL(51)SSL错误:没有备用证书主题名称匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆