On Mon, Jan 13, 2014 at 6:35 PM, Edward Ned Harvey (mono) <
[email protected]> wrote:

> > From: [email protected] [mailto:mono-list-
> > [email protected]] 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  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/mono-list
>
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to