我想在 Linux 上使用最新版本的 Mono 运行 aspnet 5.0。我能够从 github/master 成功安装 mono 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.
最佳答案
看来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/