Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
497 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: johndoe@example.com, 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 johndoe@example.com 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 johndoe@example.com

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 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...