.net core dotnet restore 还原nuget 失败
dotnet restore
提示 远程证书无效
/usr/share/dotnet/sdk/3.1.403/NuGet.targets(128,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [/blog/BlogV3.1/Contione.Blog.WebAPP/Contione.Blog.WebAPP.csproj]
/usr/share/dotnet/sdk/3.1.403/NuGet.targets(128,5): error : The SSL connection could not be established, see inner exception. [/blog/BlogV3.1/Contione.Blog.WebAPP/Contione.Blog.WebAPP.csproj]
/usr/share/dotnet/sdk/3.1.403/NuGet.targets(128,5): error : The remote certificate is invalid according to the validation procedure. [/blog/BlogV3.1/Contione.Blog.WebAPP/Contione.Blog.WebAPP.csproj]
解决方案
cp /etc/pki/tls/cert.pem /usr/local/openssl/cert.pem
版权声明:本文由Contione原创出品,转载请注明出处!
暂无评论,大侠不妨来一发?