Error installing certificate in mono 4.1.0

I want to run aspnet 5.0 on Linux with the latest version of Mono. I was able to successfully install mono 4.1.0 from github / master. When I tried to install the certificates, I get the following error:

enter image description here

If the image is blurry, the error says

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. 

Does anyone encounter this problem and have a solution? I cannot continue installing aspnet packages unless this is fixed, and I could not get any solution from my online requests. Extra info when I run sudo mozroots --import --sync 'I get an error

 sudo mozroots --import --sync Mozilla Roots Importer - version 4.1.0.0 Download and import trusted root certificates from Mozilla 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. 
+6
source share
1 answer

mozroots be your problem. As a workaround, you can do this:

  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 

The full story can be found here: https://bugzilla.mozilla.org/show_bug.cgi?id=1279952#c8

And a better offer

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

Source: https://habr.com/ru/post/985637/


All Articles