SSL:使用HTTPS在Nexus上获取工件

时间:2016-12-09 13:49:59

标签: ssl nexus

我有一台运行Nexus的服务器,我可以访问Nexus并通过https(浏览器)下载工件而没有问题。

现在我想通过https:

使用wget来获取工件
wget https://195.20.100.100:8081/repository/myrepo/com/myrepo/program/1.0-SNAPSHOT/program.tar.gz

它告诉我:

WARNING: cannot verify 195.20.100.100's certificate, issued by ‘/C=US/ST=Unspecified/L=Unspecified/O=Sonatype/OU=Example/CN=*.195.20.100.100’:
  Self-signed certificate encountered.
Proxy request sent, awaiting response... 401 Unauthorized
Authorization failed.

我想知道我必须采取的确切步骤? 提前谢谢。

1 个答案:

答案 0 :(得分:1)

这本身并不是Nexus Repository Manager问题,我相信你只需要做一些类似于这篇文章中的答案:wget, self-signed certs and a custom HTTPS server