I generate an ssh key:
~ ssh-keygen -t rsa -b 4096 Generating public/private rsa key pair. Enter file in which to save the key (/Users/kurtostfeld/.ssh/id_rsa): rsa_key Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in rsa_key. Your public key has been saved in rsa_key.pub. The key fingerprint is: <snip>
If I use an empty passphrase, I can successfully parse the private key file like this:
~ openssl asn1parse -in rsa_key
If I use a non-empty passphrase. This doesn't work. How can I parse an RSA private key with a passphrase. What format is that?
Also I can't parse the public key at all. This doesn't work with or without a passphrase:
~ openssl asn1parse -in rsa_key.pub Error: offset too large
How can I parse the RSA public key?