Home All Groups Group Topic Archive Search About

RSA 1024 Bit Decryption with *.Pem Key

Author
21 Sep 2006 8:35 PM
Ron
Hi guys,

We have created a key pair (privKey.pem, pubKey.pem) with OpenSSL as our
partner requested (they use this format).  They encrypted a string with our
public key and then base64 encoded the string.

We want to use Visual Studio.net 2003 to base64 decode the string, and then
decrypt the string with the private key (*.pem format).

It seems that VS.Net uses xml keys for this natively.  Is there a way to
work with the OpenSSL *.Pem key files with the RSACryptoProvider?

Any advice/help/guidance would be appreciated.

Thanks,

Ron

Author
21 Sep 2006 10:50 PM
Ron
Maybe I should be asking is there a way to extract the modulus and exponent
from an OpenSSL RSA 1024 bit PEM file private key???

Show quote
"Ron" wrote:

> Hi guys,
>
> We have created a key pair (privKey.pem, pubKey.pem) with OpenSSL as our
> partner requested (they use this format).  They encrypted a string with our
> public key and then base64 encoded the string.
>
> We want to use Visual Studio.net 2003 to base64 decode the string, and then
> decrypt the string with the private key (*.pem format).
>
> It seems that VS.Net uses xml keys for this natively.  Is there a way to
> work with the OpenSSL *.Pem key files with the RSACryptoProvider?
>
> Any advice/help/guidance would be appreciated.
>
> Thanks,
>
> Ron
>
Author
9 Oct 2006 11:16 PM
Kris Sheglova
Not really answering your question however:
As far as I am aware the .Net framework uses a fixed exponent when
generating keys. I do not know if keys with different exponents can be
imported.

Show quote
"Ron" <bapa118@online.nospam> wrote in message
news:6D249F9B-F3AF-4F9E-82CF-AE339838F83C@microsoft.com...
> Maybe I should be asking is there a way to extract the modulus and
> exponent
> from an OpenSSL RSA 1024 bit PEM file private key???
>
> "Ron" wrote:
>
>> Hi guys,
>>
>> We have created a key pair (privKey.pem, pubKey.pem) with OpenSSL as our
>> partner requested (they use this format).  They encrypted a string with
>> our
>> public key and then base64 encoded the string.
>>
>> We want to use Visual Studio.net 2003 to base64 decode the string, and
>> then
>> decrypt the string with the private key (*.pem format).
>>
>> It seems that VS.Net uses xml keys for this natively.  Is there a way to
>> work with the OpenSSL *.Pem key files with the RSACryptoProvider?
>>
>> Any advice/help/guidance would be appreciated.
>>
>> Thanks,
>>
>> Ron
>>

AddThis Social Bookmark Button