Search code examples
c#asn.1der

C# read der encoded private key


How can I get the fields from ASN1 DER format private key? Is there a library to decode and get the fields separately?

I need to extract the modulus, exponent and all the other fields.

Or maybe is there a way to convert it to .net xml format?


Solution

  • I found answer to it, I used the code from this utility: http://www.jensign.com/opensslkey/

    And the source code: OpenSSLKey