【发布时间】:2014-01-17 12:59:15
【问题描述】:
我是 CURL 世界的新手,来自 Windows + .NET 域。
尝试在http://www.evercam.io/docs/api/v1/authentication 访问 Rest API 以进行基本身份验证。
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
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
现在我要结束了
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'
如何解决这个 SSL 问题 51 错误?
【问题讨论】: