mono - mono 4.1.0 上的证书安装错误

标签 mono dnx

我想在 Linux 上使用最新版本的 Mono 运行 aspnet 5.0。我能够从 github/master 成功安装 mono 4.1.0。当我尝试安装证书时,出现以下错误

enter image description here

如果图像不清晰,则会出现错误

System.IO.IOException: The authentication or decryption has failed. ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: The authentication or decryption has failed.

有人遇到这个问题并有解决方案吗?除非这个问题得到解决,否则我无法继续安装 aspnet 软件包,并且我无法从在线搜索中获得任何解决方案。附加信息,当我运行“sudo mozroots --import --sync”时出现错误

sudo mozroots --import --sync
Mozilla Roots Importer - version 4.1.0.0
Download and import trusted root certificates from Mozilla's MXR.
Copyright 2002, 2003 Motus Technologies. Copyright 2004-2008 Novell. BSD licensed.

Downloading from 'http://mxr.mozilla.org/seamonkey/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1'...
Couldn't retrieve the file using the supplied information.

最佳答案

看来mozroots是你的问题。作为解决方法,您可以这样做:

 wget -q 'http://mxr.mozilla.org/seamonkey/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1' -O "/tmp/certdata.txt" 
 mozroots --import --ask-remove --file /tmp/certdata.txt

完整的故事可以在这里找到:https://bugzilla.mozilla.org/show_bug.cgi?id=1279952#c8

而且更好 suggestion

Console.WriteLine ("WARNING: mozroots is deprecated, please move to cert-sync instead.");

关于mono - mono 4.1.0 上的证书安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29782935/

相关文章:

c# - 在 raspbian 上用 mono 执行 shell 命令

linux - Jenkins 上带有单声道的 MSBUILD

.net - 如何修复 Visual Studio 2015 中的 DNX/DNVM?

c# - 如何使用 WebListener 和 Windows 身份验证让我的 ASP.NET Core 应用程序托管在 IIS 下?

c# - NoWarn 在 DNX 中不工作

git - .gitignore 用于 Mono/MonoDevelop 项目

没有 Windows dll 的 C# 和 HID

Linux 到 Windows 连接被拒绝

visual-studio-2015 - Visual Studio 2015 中的 xUnit

centos - 如何在 CentOs 机器上安装 .net 核心?