mono 4.1.0上的证书安装错误

时间:2015-04-21 20:54:41

标签: 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.

1 个答案:

答案 0 :(得分:5)

似乎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.");