【问题标题】:Certificate error when pushing nuget symbol package推送 nuget 符号包时出现证书错误
【发布时间】:2018-04-06 03:09:37
【问题描述】:

我正在尝试将符号包推送到 nuget 符号服务器。 API 密钥已设置,常规包已正常上传。但是,当我尝试推送符号包时,它失败了:

PM> nuget push .\Tanneryd.BulkInsert.1.0.1-alfa.symbols.nupkg -source https://nuget.smbsrc.net/ Pushing Tanneryd.BulkInsert.1.0.1-alfa.symbols.nupkg to the symbol server (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 : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. At line:1 char:1
+ nuget push .\Tanneryd.BulkInsert.1.0.1-alfa.symbols.nupkg -source htt ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (The underlying ...secure channel.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
    The remote certificate is invalid according to the validation procedure.

【问题讨论】:

  • 域现在又拥有了一个有效的证书,它应该可以工作了。

标签: debugging package nuget push symbols


【解决方案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]

【讨论】:

  • 故障也被报告为 NuGet issue
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2013-05-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-03-16
  • 2015-07-31
  • 1970-01-01
相关资源
最近更新 更多