是否可以在没有 ssl 验证的情况下推送到 nuget 存储库?

Is it possible to push to a nuget repository without ssl Verify?

我想从 Windows 2012 R2 服务器推送到内部(局域网内)nuget 存储库(托管在 Nexus 版本 3 上)。是否可以像使用 git 推送一样推送到此存储库并忽略 ssl 验证?

例如 git 你可以做 git config http.sslVerify false,类似的事情可以用 nuget push 命令做吗?我有一个 Google 但什么也没有。

我的 nuget 命令是:

nuget push my.nuget.package.version.nupkg -Source https://nexus.repo.local/repo -apikey {apikey}

我目前收到此错误:The remote certificate is invalid according to the validation procedure.

我还没有找到一种方法来做你想做的事(我愿意),但是如果你可以用你自己的 CA 安装一个自签名证书,你可以在客户端上安装该 CA 作为受信任的来规避这个问题。