Hi,

I am developing a small application that needs to load my RSA private
key file. The key is password protected.

I have used the openssl documentation to understand how it all is
built up, and am trying to decode it actually using openssl (and of
course my tool).

-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,3F17F5316E2BAC89
...base64 encoded data...
-----END RSA PRIVATE KEY-----

I have figured out that:

I need to Base64 decode the data block.
I need to add "Salted__" and the 8 bytes salt from DEK-Info to the
front of the decoded block.
I then decrypt that entire block using DES-EDE3-CBC using my private
key password

The resulting decrypted data is still all jibberish...
After a lot of searching on google, some sites claim that this block
is actually the DER encoded ASN1 data.

My question:
How to decode DER into plain ascii to see the ASN1 structure?
Specifically, how to do this using openssl OR Delphi

Thanks in advance,
Rory