从Nexus下载构建文件,运行wget时出现证书错误,但是使用浏览器成功(Firefox,Chrome)

时间:2014-10-13 15:36:03

标签: ssl certificate wget nexus

我已经从DigiCert购买了SSL Certifcate并将其安装到我的Nexus服务器中(在tomcat,jks中运行)

它在firefox和chrome中运行良好(绿色地址栏表示收到了有效的证书),构建版本也可以从Nexus WebUI下载。

但是,如果没有--no-check-certificate, wget 无法获得结果

之类的东西
ERROR: cannot verify mydomain.com's certificate, issued by `/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3':
  Unable to locally verify the issuer's authority.
To connect to mydomain.com insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.

找到了一些东西,

SSL connection fails with wget, curl, but succeed with firefox and lynx

linux wget not certified?

但他们都没有提供最终解决方案,我想知道Nexus上是否有某些(特殊)配置或者这是wget命令的错误?

Google返回了很多关于“digitcert wget”的结果,但我也找不到线索,谢谢!

1 个答案:

答案 0 :(得分:0)

您需要将DigiCert根证书添加到wget可访问的商店:

http://wiki.openwrt.org/doc/howto/wget-ssl-certs