我安装了软件,我有curl可用。 我试图让它通知我(通过pushover)当路由器重新启动。
curl \ -F "token=<token goes here>" \ -F "user=<user key goes here>" \ -F "message=ASUS Router WAN Up" \ https://api.pushover.net/1/messages
这是一个华硕RT-N16路由器使用番茄固件1.28.0000 MIPSR2-097 K26 USB Mega-VPN
错误消息表明这是安装的CA的问题:
url: (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.
那么build议安装CA软件包的方式是什么? 或者我应该不安全(-k作品)?
如果你真的在错误消息中读取URL,它将解释为什么发生这种情况,你的select是什么。 总结是你有两个select:
--insecure选项来禁用检查。 cacert.pem存储在系统的某处,并用--cacert选项指向cURL。