AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 412727
Accepted
Cade Roux
Cade Roux
Asked: 2012-07-31 17:43:43 +0800 CST2012-07-31 17:43:43 +0800 CST 2012-07-31 17:43:43 +0800 CST

在 Tomato USB 上卷曲 - SSL CA 问题

  • 772

我安装了 optware,并且可以使用 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

这是使用 Tomato 固件 1.28.0000 MIPSR2-097 K26 USB Mega-VPN 的华硕 RT-N16 路由器

错误消息表明这是安装的 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.

那么安装 CA 包的推荐方法是什么?还是我应该变得不安全(-k 有效)?

curl
  • 1 1 个回答
  • 1138 Views

1 个回答

  • Voted
  1. Best Answer
    mgorven
    2012-07-31T21:48:41+08:002012-07-31T21:48:41+08:00

    如果您确实阅读了错误消息中的 URL,它将解释发生这种情况的原因以及您的选择。总结是你有两个选择:

    1. 禁用证书验证,这意味着 cURL 不会检查您是否连接到正确的服务器,您可能会受到 MITM 攻击。在这种情况下这可能没问题,因此请指定--insecure禁用检查的选项。
    2. 安装一组 CA 证书以供 cURL 信任。如果 Tomato 不提供包,您可以从 cURL 网站下载 CA 包(它只是从 Mozilla 集转换而来)。存储cacert.pem在系统的某处,并使用选项将 cURL 指向它--cacert。
    • 1

相关问题

  • 来自php的慢卷曲,其他

  • 在macosx上重复curl + grep偶尔会产生不好的结果?

  • 为什么 squid 拒绝来自 curl 的这个 multipart-form-data POST?

  • 不指定 IP 地址时 curl 需要很长时间

  • windows php curl install : 推荐一个好的网站?[关闭]

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve