Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
493 views
in Technique[技术] by (71.8m points)

public key encryption - When generating or exporting a GPG private key, what is 'secret subkey'?

Let's say I generate a secret PGP key using gpg --gen-key
I enter name: John Doe, and email: [email protected], it asks for a passphrase, and then generates the key.

When I do gpg --list-keys the new key is there.

Now when I export the key using gpg --export-secret-key [email protected] it asks for the passphrase to export the OpenPGP secret key. When I click cancel, it asks again for the passphrase, this time to export the OpenPGP secret subkey.

What is this 'secret subkey', how does it differ from the main or regular secret key?

When I export the public key, i.e. the thing I can send to others, I use this:
gpg --armor --export [email protected]

And then I get something that looks like a base64 encoded public key. But it's just one key. Which part is this, the main key or subkey? Or is there no difference when dealing with the public side of things?

question from:https://stackoverflow.com/questions/66066178/when-generating-or-exporting-a-gpg-private-key-what-is-secret-subkey

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...