[Mono-list] How to debug mono, or, How to fix this cert

Sebastien Pouliot sebastien.pouliot at gmail.com
Tue Jan 14 01:19:12 UTC 2014

On Mon, Jan 13, 2014 at 6:35 PM, Edward Ned Harvey (mono) <
edward.harvey.mono at clevertrove.com> wrote:

> > From: mono-list-bounces at lists.ximian.com [mailto:mono-list-
> > bounces at lists.ximian.com] On Behalf Of Edward Ned Harvey (mono)
> >
> > Unfortunately, when I run this under mono (on mac) it fails.
> PS.  It successfully creates the signed cert, and the PKCS12 bytes.  But
> then the line that fails is new X509Certificate2(Pkcs12Bytes)

Did you provide the password when creating the X509Certificate2 ? i.e. use
the .ctor with a byte[] and string parameters

Did you try to import the PKCS#12 file into the (Mac) keystore ? if the
format is incorrect you'll get error, if it's imported then the error is
not in your PKCS12 creation code (but later)

> It throws System.Security.Cryptography.CryptographicException.  Unable to
> decode certificate.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20140113/51a1b1fd/attachment.html>

More information about the Mono-list mailing list