macos - 如何在 Mac OS X 上启用 curl SSL?

标签 macos ssl curl terminal

我在 Mac OS X 10.11.2 上使用终端,但无法处理任何 https 请求。我总是收到此错误:

curl: (1) Protocol "https" not supported or disabled in libcurl

我试过了,但出现“错误的目录”错误:

./configure --with-ssl=/usr/local/ssl

任何建议都会有所帮助。

编辑:

这是我尝试使用 ssl 安装时遇到的错误:

configure: error: OpenSSL libs and/or directories were not found where specified!

解决方案:

对于 Mac OS X 10.6 或更高版本,使用它来启用 SSL:

./configure --with-darwinssl

最佳答案

Homebrew 团队最近删除了 cURL 公式的所有安装选项,这意味着您现在将无法执行 brew install curl --with-openssl。相反,执行 brew install curl-openssl。确保首先使用 brew uninstall curl 卸载旧版本。

关于macos - 如何在 Mac OS X 上启用 curl SSL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34914473/

相关文章:

curl - Paypal - curl 请求

macos - iTMSTransporter 在抢先体验更新 channel 上可用

node.js - 如何在 mac 上杀死 nodemon 进程?

ssl - 登台服务器子域上的 Heroku SSL

ruby - bundle 安装的 ssl 证书失败

ssl - 如何在 Heroku 上使用 Go 修复 TLS 握手错误?

swift - 在 macOS 应用程序中支持 URL 方案

macos - 如何在 OSX 的恢复模式下取消隐藏/Users 文件夹

php - 对于同一服务器,CURLOPT_CONNECTTIMEOUT 和 CURLOPT_TIMEOUT 具有良好的生产值

php curl 获取 mysql 数据 - 只返回一行