I have a openpgp key with 3 subkeys:
> gpg --list-keys
<keyring-location>
-------------------------------
pub rsa4096 2017-05-19 [SC] [expires: 2019-05-19]
<key-id>
uid [ultimate] <my-name> <my-email>
sub rsa4096 2017-05-19 [E] [expires: 2019-05-19]
sub rsa4096 2017-05-19 [S] [expires: 2019-05-19]
sub rsa4096 2017-05-19 [A] [expires: 2019-05-19]
My goal: I want to create a certificate for my pulic key for authentication with strongswan.
Now when I export the key, I get:
> gpg --armor --export <key-id>
-----BEGIN PGP PUBLIC KEY BLOCK-----
...
-----END PGP PUBLIC KEY BLOCK-----
My questions:
- What is a public key block? Does it contain all my public keys?
- How can I extract the public key of my authentication key so that I can create a certificate for it?
- If I have a certificate, how can I check if it is for the authentication key?