Home All Groups Group Topic Archive Search About
Author
27 Apr 2005 9:53 PM
StefanT
Hi,

I need some help, I have a public key and a private key in PKCS#8 file
created with OpenSSL, my task is to extract the private and the public key
from this file to create a RSA instance and also to be able to export this
RSA object in PKCS#8 format.

I did some research on Internet but I don't find something useful I'm afraid.

Thx for your help,
Best regards Stefan

Author
27 Apr 2005 7:53 PM
StefanT
I manage to find a class in Mono witch is able to do this import export thing.

Namespace : Mono.Security.Cryptography
Class: PKCS8

Best regards,
Stefan

Show quoteHide quote
"StefanT" wrote:

> Hi,
>
> I need some help, I have a public key and a private key in PKCS#8 file
> created with OpenSSL, my task is to extract the private and the public key
> from this file to create a RSA instance and also to be able to export this
> RSA object in PKCS#8 format.
>
> I did some research on Internet but I don't find something useful I'm afraid.
>
> Thx for your help,
> Best regards Stefan
Author
27 Apr 2005 10:14 PM
Michel Gallant
You can Pinvoke using:
   http://msdn.microsoft.com/library/default.asp?url=/library/en-us/seccrypto/security/cryptexportpkcs8ex.asp
Is that an encrypted EncryptedPrivateKeyInfo or an unencrypted PrivateKeyInfo ?

Related, here is a PrivateKeyInfo to CryptoAPI  PRIVATEKEYBLOB converter (in Java 2 tho!  lol) :
   http://www.jensign.com/JavaScience/PvkConvert

- Mitch

Show quoteHide quote
"StefanT" <stefan_tabar***@yahoo.com> wrote in message news:B7B28AE0-6AFE-45AF-8DB7-CFF137F79250@microsoft.com...
> Hi,
>
> I need some help, I have a public key and a private key in PKCS#8 file
> created with OpenSSL, my task is to extract the private and the public key
> from this file to create a RSA instance and also to be able to export this
> RSA object in PKCS#8 format.
>
> I did some research on Internet but I don't find something useful I'm afraid.
>
> Thx for your help,
> Best regards Stefan