Yeah, I saw that. Unfortunately it's 2.0. I was hoping to find a starting
point for a 1.1 app. Your right, this is a PITA.

Cheers!
Dave
----- Original Message -----
From: "Mark Brackett" <[EMAIL PROTECTED]>
To: <ADVANCED-DOTNET@DISCUSS.DEVELOP.COM>
Sent: Tuesday, February 20, 2007 4:16 PM
Subject: Re: [ADVANCED-DOTNET] importing RSA public/private keys from
openssl


It seems this is a bigger PITA than I think it should be.... Anyway,
here's some source I googled up for a converter between OpenSSL's PEM
and .NET's XML format. I think it should give you a pretty good start.

http://www.jensign.com/opensslkey/opensslkey.cs

--Mark Brackett

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of dave wanta
Sent: Tuesday, February 20, 2007 1:25 PM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] importing RSA public/private keys from
openssl

Hi all,

I need to import RSA public/private keys into a RSA object. The keys are
output by OpenSSL. They look like:

-----BEGIN RSA PRIVATE KEY-----
MIIBygIBAAJhANS1c5VhPikZk16sUrGD
....(more base64 encoded text)...
xtfsjBFtV2QC9F8ji+aIAWH3Jvd4sGrTs
-----END RSA PRIVATE KEY-----


-----BEGIN PUBLIC KEY-----
MHwwDQYJKoZIhvcNAQEBBQADawAwa
....(more base64 encoded text)...
shqfeOdAJbehcg3dsJthMtCthE1Exes6HQI
-----END PUBLIC KEY-----


Any ideas on where I can start? I'd prefer to do this in .NET 1.1.

just fyi...the keys are generated from the OpenSSL command:

$ openssl  genrsa -out private.key 768
and
$ openssl rsa -in private.key -out public.key -pubout -outform PEM


Thanks!
Dave

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to