cocoa - 将 Sparkle Updater 与托管在 GitHub 上的下载一起使用

标签 cocoa ssl download certificate github

我在 GitHub 上托管我的下载,以节省我自己服务器上的带宽,但是当 Sparkle updater 尝试从 GitHub 下载更新时,它失败并出现错误:

Sparkle Error (continued): The operation couldn’t be completed. (NSURLErrorDomain error -1100.)

我发现这是由于 GitHub 的证书不匹配,正如您从这次尝试使用 wget 从 GitHub 下载我的应用程序中看到的那样:

$ wget http://github.com/downloads/chetan51/sidestep/Sidestep%20v0.2.1.zip
--2010-11-21 16:29:26--  http://github.com/downloads/chetan51/sidestep/Sidestep%20v0.2.1.zip
Resolving github.com... 207.97.227.239
Connecting to github.com|207.97.227.239|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://github.com/downloads/chetan51/sidestep/Sidestep%20v0.2.1.zip [following]
--2010-11-21 16:29:27--  https://github.com/downloads/chetan51/sidestep/Sidestep%20v0.2.1.zip
Connecting to github.com|207.97.227.239|:443... connected.
ERROR: certificate common name `*.github.com' doesn't match requested host name `github.com'.
To connect to github.com insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.

这个问题有什么解决方法吗?

最佳答案

我怀疑您实际上并没有深入了解证书错误。这个周末我遇到了类似的错误,发现 Sparkle(错误地)对附件 URL 执行了 %-escaping。如果您将 %20 更改为纯空格,您可能会收到一个不同的错误,指出您认为遇到的问题。

我知道这不是很有帮助。

关于cocoa - 将 Sparkle Updater 与托管在 GitHub 上的下载一起使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4241312/

相关文章:

macos - 如何以 root 身份启动 NSTask,现代方法?

.htaccess - 如何将我的博客 http ://subdomain. example.com 重定向到 https://

linux - 如何从命令行从 Linux 服务器下载文件?

objective-c - 如何在 Sparkle 中签署您的更新

cocoa - 嵌入 NSSscrollView 的自定义 NSView

c++ - 混合使用 C++ 和 Objective-C (Cocoa) 导致段错误

c - 读取 HTTPS 流量中的 SSL 和 TLS 数据

java - 访问被拒绝 ("javax.net.ssl.SSLPermission" "setDefaultSSLContext")

php - 强制文件下载并显示新页面

html - 机器人框架下载文件