我正在尝试将符号包推送到nuget符号服务器。 API密钥已设置,常规包已上传得很好。但是,当我尝试按下符号包时,它无法说出以下内容:
PM> nuget push。\ Tanneryd.BulkInsert.1.0.1-alfa.symbols.nupkg -source https://nuget.smbsrc.net/推动 Tanneryd.BulkInsert.1.0.1-alfa.symbols.nupkg到符号服务器 (https://nuget.smbsrc.net/)... PUT https://nuget.smbsrc.net/api/v2/package/ PUT https://nuget.smbsrc.net/api/v2/package/ PUT https://nuget.smbsrc.net/api/v2/package/ nuget:潜在的 连接已关闭:无法建立信任关系 SSL / TLS安全通道。在行:1个字符:1 + nuget push。\ Tanneryd.BulkInsert.1.0.1-alfa.symbols.nupkg -source htt ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ + CategoryInfo:NotSpecified :(底层...安全通道。:String)[],RemoteException + FullyQualifiedErrorId:NativeCommandError 根据验证程序,远程证书无效。
答案 0 :(得分:1)
https://nuget.smbsrc.net/目前似乎有证书错误(例如过期证书)。当我从IE进入这里时,我看到了:
This site is not secure
This might mean that someone’s trying to fool you or steal any info you send to the server. You should close this site immediately.
<强>更新强>
我能够通过指定HTTP而不是安全来发布。例如:
nuget push dist/MyPackage.1.0.0.symbols.nupkg -Source http://nuget.smbsrc.net -ApiKey [my key]