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