all groups > dotnet security > february 2006 >
You're in the

dotnet security

group:

Using RSA public keys exported from Java or OpenSSL in .NET


Using RSA public keys exported from Java or OpenSSL in .NET Mitch Gallant
2/27/2006 1:14:23 PM
dotnet security:
A number of folks have asked about using exported keys from either OpenSSL (PEM
or otherwise) or Java 2 (PublicKey.getEncoded()) from .NET 1.1 or higher.

It is possible to use various versions of Pinvoke to capi for this, but it is also possible
to directly parse the standard asn.1 encoded public key format (X.509 SubjectPublicKeyInfo)

The following C# utility "pempublic" decodes an asn.1 encoded SubjectPublicKeyInfo
file blob (in either binary of b64 with or without PEM header/footer) to extract the
modulus and exponent data and instantiate an RSACryptoServiceProvider:
http://www.jensign.com/JavaScience/dotnet/pempublic/

- Mitch Gallant
MVP Security

Re: Using RSA public keys exported from Java or OpenSS ... kirjatuvi NO[at]SPAM msn.com
4/10/2006 1:19:04 AM
The link here is down and im unable to get the sample :(
Would you be able to send it to me or put it up somewhere else ?
I have the same issue with pem.
thanks,
Re: Using RSA public keys exported from Java or OpenSS ... Mitch Gallant
4/10/2006 7:31:19 AM
http://www.jensign.com/pempublic
- Mitch

[quoted text, click to view]

AddThis Social Bookmark Button