Bug 18058 - ERROR building certificate chain
Summary: ERROR building certificate chain
Status: RESOLVED DUPLICATE of bug 18224
Alias: None
Product: Class Libraries
Classification: Mono
Component: System ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Sebastien Pouliot
URL:
Depends on:
Blocks:
 
Reported: 2014-02-27 16:15 UTC by Mikayla Hutchinson [MSFT]
Modified: 2014-03-06 16:59 UTC (History)
1 user (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 DUPLICATE of bug 18224

Description Mikayla Hutchinson [MSFT] 2014-02-27 16:15:08 UTC
I'm getting the following error on master when starting XS.

ERROR building certificate chain: System.ArgumentException: certificate ---> System.Security.Cryptography.CryptographicException: Unable to decode public key. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at System.Security.Cryptography.X509Certificates.PublicKey..ctor (Mono.Security.X509.X509Certificate certificate) [0x000e0] in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-None/mcs/class/System/System.Security.Cryptography.X509Certificates/PublicKey.cs:108 
  at System.Security.Cryptography.X509Certificates.X509Certificate2.get_PublicKey () [0x00021] in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-None/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs:266 
  --- End of inner exception stack trace ---
  at System.Security.Cryptography.X509Certificates.X509Certificate2.get_PublicKey () [0x00043] in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-None/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs:270 
  at System.Security.Cryptography.X509Certificates.X509Chain.ValidateChain (X509ChainStatusFlags flag) [0x0004f] in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-None/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:501 
  at System.Security.Cryptography.X509Certificates.X509Chain.Build (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate) [0x0001f] in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-None/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:120 
  --- End of inner exception stack trace ---
  at System.Security.Cryptography.X509Certificates.X509Chain.Build (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate) [0x0002c] in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-None/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:123 
  at System.Net.ServicePointManager+ChainValidationHelper.ValidateChain (Mono.Security.X509.X509CertificateCollection certs) [0x0009f] in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-None/mcs/class/System/System.Net/ServicePointManager.cs:491 
Please, report this problem to the Mono team
Comment 1 Sebastien Pouliot 2014-03-06 16:59:56 UTC

*** This bug has been marked as a duplicate of bug 18224 ***