[Mono-list] X509Certificate2.Export(X509ContentType.Pfx) support
Esben Laursen
hyber at hyber.dk
Fri Jul 6 20:52:34 UTC 2012
Den 03-07-2012 19:11, matthieu Barthélemy skrev:
> Hi all,
>
> I'm using Mono 2.10.6 to develop and test my project, and realized
> that the export of a certificate to the Pfx or PKCS#12 formats is not
> supported. The following code:
>
> X509Certificate2 cert= new X509Certificate2("dummy.crt", "");
> cert.Export(X509ContentType.Pfx);
>
>
> throws the following exception:
> Operation is not supported.--- at
> System.Security.Cryptography.X509Certificates.X509Certificate.Export
> (X509ContentType contentType, System.Byte[] password) [0x00047] in
> /home/abuild/rpmbuild/BUILD/mono-2.10.6/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Certificate20.cs:195
>
> at
> System.Security.Cryptography.X509Certificates.X509Certificate.Export
> (X509ContentType contentType) [0x00000] in
> /home/abuild/rpmbuild/BUILD/mono-2.10.6/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Certificate20.cs:163
>
>
> Is this something that is being worked on, or planned to be implemented?
> If not, does it represent a lot of (complicated) work? Is there a
> workaround to export a complete certificate (including private key)
> and be able to re-import it at a later time?
>
Hi Matthieu,
I do not know about the native mono lib, its at a standstill as far as I
know. However I have successfully used the SecureBlackBox from Eldos
under mono 2.6.x/2.10.x
It is not that well documentated, but the support is very helpfull and
the price is within a reasonable level in my mind.
Have a look at this link: http://eldos.com/sbb/desc-pki.php
You can get a trial key for testing..
Cheers
Esben
More information about the Mono-list
mailing list