Information Security Stack Exchange is a question and answer site for information security professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've created a keypair with

gpg2 --gen-key

Then I created a subkey only for signing.

If I clearly understand the process I have now 3 pub/priv pairs. The master, one for encrypting and one for signing.

I exported public keys with:

gpg --armor --export FINGERPRINT > pub.asc

Now I have a file which seems to contain only one public key. Is it the master public key? Does this pub key contain the others public keys?

I'll sign with the third subkey I've created, so which public key do I need to upload on a keyserver?

share|improve this question

migrated from Feb 13 '14 at 18:55

This question came from our site for software developers, mathematicians and others interested in cryptography.

up vote 2 down vote accepted

Subkeys are bound to the primary key and exported together with it when calling gpg --export or gpg --send-keys. Same applies to signatures and user ID packages.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.