I have exported public and private keys to file with
gpg --export and
--export-secret-keys. When I examine them with
gpg --list-packets. I can see that the file contains:
- the actual key
- the user ID
- a signature packet
How can I extract only the actual key from the file? I would like end up with a PKCS8 private key file and a PublicKeyInfo(?) file that I can use programmatically.