|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
RSA to PKCS#8Hi,
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 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 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
EventLogPermission via caspol.exe
Creating User Accounts with or without Active Directory Code Source Security How to share a Principal within a ThreadPool ? Upgrading Encryption to .Net not Working!!!!!!! Access denied with interop Very slow Principal.IsInRole call... CredUIConfirmCredentials behaves unexpectedly Strong-Name Assembly calling WebService Walking Active Directory |
|||||||||||||||||||||||