[Mono-bugs] [Bug 316337] ASN.1 doesn't support undefined length encoding

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jul 20 04:53:11 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=316337

User jxelam at gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=316337#c1


Alex Mason <jxelam at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jxelam at gmail.com
           Platform|Other                       |All
            Version|unspecified                 |2.4.x




--- Comment #1 from Alex Mason <jxelam at gmail.com>  2009-07-20 02:53:07 MDT ---
Mono still can't read a byte array representing an PCKS #12 object, generated
by BouncyCastle, via X509Certificate2() due to this issue:

Unhandled Exception: System.Security.Cryptography.CryptographicException: Input
data cannot be coded as a valid certificate. ---> System.NotSupportedException:
Undefined length encoding.
  at Mono.Security.ASN1..ctor (System.Byte[] data) [0x00000]
  at Mono.Security.X509.X509Certificate.Parse (System.Byte[] data) [0x00000]
  --- End of inner exception stack trace ---
  at Mono.Security.X509.X509Certificate.Parse (System.Byte[] data) [0x00000]
  at Mono.Security.X509.X509Certificate..ctor (System.Byte[] data) [0x00000]
  at System.Security.Cryptography.X509Certificates.X509Certificate.Import
(Syste
m.Byte[] rawData, System.String password, X509KeyStorageFlags keyStorageFlags)
[
0x00000]
  at System.Security.Cryptography.X509Certificates.X509Certificate2.Import
(Syst
em.Byte[] rawData, System.String password, X509KeyStorageFlags keyStorageFlags)
[0x00000]
  at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor
(Syste
m.Byte[] rawData, System.String password, X509KeyStorageFlags keyStorageFlags)
[
0x00000]
  at CertCreate.Main (System.String[] args) [0x00000]

Are there any updates pertaining to the new decoder?

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


More information about the mono-bugs mailing list