在Windows 7上获取HTTPS服务器的证书指纹?
最近,Mercurial 在连接到 HTTPS 服务器时添加了证书验证。我正在尝试克隆 Google Code 项目的 wiki 存储库,网址为 https://wiki.droidweight。 googlecode.com/hg/,但证书适用于 *.googlecode.com
。
Google 代码的证书不涵盖多个子域,例如 *.*.googlecode.com
。
我收到错误:
% hg clone --verbose https://wiki.droidweight.googlecode.com/hg/ -- C:\workspace\wiki
abort: wiki.droidweight.googlecode.com certificate error: certificate is for *.googlecode.com, googlecode.com, *.codespot.com, *.googlesource.com, googlesource.com (use --insecure to connect insecurely)
我需要获取证书指纹。 这个答案说明了如何在 *nix 上执行此操作。
如何在 Windows 7(家庭高级版)上获取指纹?
参考:
Recently Mercurial has added certificate validation when connecting to HTTPS servers. I'm trying to clone the wiki repository for a Google Code project at https://wiki.droidweight.googlecode.com/hg/, but the certificate is for *.googlecode.com
.
Google Code's certificate does not cover multiple subdomains like *.*.googlecode.com
.
I'm getting the error:
% hg clone --verbose https://wiki.droidweight.googlecode.com/hg/ -- C:\workspace\wiki
abort: wiki.droidweight.googlecode.com certificate error: certificate is for *.googlecode.com, googlecode.com, *.codespot.com, *.googlesource.com, googlesource.com (use --insecure to connect insecurely)
I need to get the certificate fingerprint. This SO answer says how to do it on *nix.
How would one get the fingerprint on Windows 7 (Home Premium)?
References:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您使用的是哪个版本的 Mercurial? 1.8.2 在克隆时打印指纹,根据文档。
编辑:经过一些测试,我意识到当您不安全连接时,Mercurial 会打印证书(我没有配置
web.cacerts
,因此克隆总是成功,尽管使用警告)。因此,如果您将--insecure
传递给您的hg 克隆
,您将获得一个克隆和指纹。或者,安装GnuWin32!它使 Windows 命令行成为一个有趣的地方:)(我与 GnuWin32 没有任何关系;只是非常感激。)
Which version of Mercurial are you using? 1.8.2 prints the fingerprint when you clone, as per the documentation.
EDIT: After some testing, I realised that Mercurial prints the certificate when you connect insecurely (I don't have
web.cacerts
configured, so cloning always succeeded, though with a warning). So if you pass--insecure
to yourhg clone
, you'll get a clone and a fingerprint.Alternatively, install GnuWin32! It makes the Windows command line a fun place to be :) (I have no affiliation with GnuWin32; just hugely appreciative.)