Bug 28291 - Mozroots, Error: System.NullReferenceException
Summary: Mozroots, Error: System.NullReferenceException
Status: RESOLVED FIXED
Alias: None
Product: Tools
Classification: Mono
Component: other ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-03-21 09:53 UTC by tobias.elleboe.cordsen
Modified: 2017-05-31 16:16 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description tobias.elleboe.cordsen 2015-03-21 09:53:01 UTC
I'm getting the following error when trying to import root certificates. Version of mono supplied with unity is: 4.0.1.


C:\Program Files\Unity\Editor\Data\MonoBleedingEdge\lib\mono\4.5>mozroots --impo
rt --ask-remove
Mozilla Roots Importer - version 3.4.0.0
Download and import trusted root certificates from Mozilla's MXR.
Copyright 2002, 2003 Motus Technologies. Copyright 2004-2008 Novell. BSD license
d.

Downloading from 'http://mxr.mozilla.org/seamonkey/source/security/nss/lib/ckfw/
builtins/certdata.txt?raw=1'...
Importing certificates into user store...
Error: System.NullReferenceException: Object reference not set to an instance of
 an object.
   at Mono.Security.X509.X509Certificate.get_Hash()
   at Mono.Security.X509.X509CertificateCollection.IndexOf(X509Certificate value
)
   at Mono.Security.X509.X509CertificateCollection.Contains(X509Certificate valu
e)
   at Mono.Tools.MozRoots.Process()
   at Mono.Tools.MozRoots.Main(String[] args)
Comment 1 Alexander Köplinger [MSFT] 2017-05-31 16:16:42 UTC
This was fixed in Mono with https://github.com/mono/mono/commit/e8bd8e656dc838d3b203961c1155a4c2898b5a96, no idea about when that comes to Unity.