[Mono-bugs] [Bug 403610] Error importing Pkcs#12 certificate

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jun 26 07:36:15 EDT 2008


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

User spouliot at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=403610#c2


Sebastien Pouliot <spouliot at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
             Status|NEW                                             |ASSIGNED
          Component|System.Security                                 |System
         OS/Version|Mac OS X 10.5                                   |All




--- Comment #2 from Sebastien Pouliot <spouliot at novell.com>  2008-06-26 05:36:14 MDT ---
oops, it seems auto-detection does not work for this constructor. The
workaround is to use the ctor that allows a password to be used and pass
String.Empty to it.
E.g.

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

class Program {

        static void Main ()
        {
                X509Certificate2 x = new X509Certificate2 ("403610.pfx",
String.Empty);
                Console.WriteLine (x.ToString (true));
        }
}


-- 
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