We have a private nuget gallery hosted behind https with auth.
When using nuget.exe or the VS extension this happens to download packages:
D:\temp> nuget install PackageID
Please provide credentials for:
https://privatenugetgallery/api/v2 UserName: nhhagen Password: ************ Attempting to resolve dependency 'DotNetZip (= 126.96.36.199
Unable to connect to the remote server
It does not matter if the dependencies are hosted on nuget.org or our internal gallery.
If I enable the http endpoint of privatenugetgallery/api/v2 with no need for user/pass on the web server (not as a feed) it works fine.
It turns out after using fidler that nuget is trying to download the package from this url:
Why is nuget not using the feed url that I have configured (https://privatenugetgallery/api/v2
). I hope it is possible to expose a nuget feed over https only, as this will ensure encrypted password