6

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

在此处输入图像描述

如果图像不清晰,错误会说

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.
4

1 回答 1

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

更好的建议

Console.WriteLine ("WARNING: mozroots is deprecated, please move to cert-sync instead.");
于 2016-06-28T22:25:39.267 回答