使用Sparkle Updater和GitHub上托管的下载

时间:2010-11-22 00:33:29

标签: cocoa ssl download certificate github

我正在GitHub上托管我的下载,以节省我自己服务器上的带宽,但是当Sparkle更新程序尝试从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.

此问题是否有解决方法?

1 个答案:

答案 0 :(得分:1)

我怀疑你实际上没有得到证书错误。本周末我遇到了类似的错误,发现Sparkle(错误地)对附件URL执行了%-escaping。如果您将%20更改为普通空格,您可能会得到一个不同的错误,表明您认为自己遇到的问题。

我知道并不是非常有用。