[Mono-bugs] [Bug 346821] New: Invalid AuthorityKeyIdentifier verifying certificate

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Dec 7 11:11:12 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=346821


           Summary: Invalid AuthorityKeyIdentifier verifying certificate
           Product: Mono: Class Libraries
           Version: SVN
          Platform: All
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: spouliot at novell.com
        ReportedBy: gert.driesen at pandora.be
         QAContact: mono-bugs at ximian.com
          Found By: ---


When verifying the certificates used by, amongst others, microsoft.com and
paypal.com, the following ArgumentException is thrown:

Unhandled Exception: System.ArgumentException: Invalid AuthorityKeyIdentifier
ex
tension
  at Mono.Security.X509.Extensions.AuthorityKeyIdentifierExtension.Decode ()
[0x
00000]
  at Mono.Security.X509.X509Extension..ctor (Mono.Security.X509.X509Extension
ex
tension) [0x00000]
  at Mono.Security.X509.Extensions.AuthorityKeyIdentifierExtension..ctor
(Mono.S
ecurity.X509.X509Extension extension) [0x00000]
  at
System.Security.Cryptography.X509Certificates.X509Chain.GetAuthorityKeyIden
tifier (Mono.Security.X509.X509Extension ext) [0x00000]
  at
System.Security.Cryptography.X509Certificates.X509Chain.GetAuthorityKeyIden
tifier (System.Security.Cryptography.X509Certificates.X509Certificate2
certifica
te) [0x00000]
  at System.Security.Cryptography.X509Certificates.X509Chain.FindParent
(System.
Security.Cryptography.X509Certificates.X509Certificate2 certificate) [0x00000]
  at System.Security.Cryptography.X509Certificates.X509Chain.BuildChainFrom
(Sys
tem.Security.Cryptography.X509Certificates.X509Certificate2 certificate)
[0x0000
0]
  at System.Security.Cryptography.X509Certificates.X509Chain.Build
(System.Secur
ity.Cryptography.X509Certificates.X509Certificate2 certificate) [0x00000]
  at System.Security.Cryptography.X509Certificates.X509Certificate2.Verify ()
[0
x00000]
  at test.MainClass.Main (System.String[] args) [0x00000]

To reproduce this issue, run the following code against the attached
certificate:

using System;
using System.Security.Cryptography.X509Certificates;

class Program
{
    static void Main ()
    {
        X509Certificate2 cert = new X509Certificate2 ("ms.cer");
        Console.WriteLine ("Valid: {0}", cert.Verify ());
    }
}


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list