I've actually managed to solve some of these myself.
If I've written something wrong, please correct me and I will update it for future readers...
TheStigh wrote:
1) gpg --gen-key
This installs by default both a Signature and Certify certificate in Key 0 and Encryption as sub in Key 1
By using add-key I add Authenticate as sub in Key 2.
[QUESTION 1]: I see in an article that somebody also add the Signature as a standalone as sub in Key 3. What is the purpose of this?
Just seems this is the way GPG work. All the different keys you need must be individually created as subs.
TheStigh wrote:
2) gpg --export
[QUESTION 2]: When I do an export of public, private and revoke, are these full backups of all 3 certificates?
gpg --armor --export-secret-keys $KEYID > mastersub.key
gpg --armor --export-secret-subkeys $KEYID > sub.key
gpg --armor --export $KEYID > pubkey.txt
The export of private
must be done before moving the keys to the YubiKey.
When creating the revoke is actually not stored any other place than the file you made during the creation of revoke.
TheStigh wrote:
3) gpg --key-edit
Here I MOVE keys from the local keyring to the Yubikey.
[QUESTION 3]: What are the advantages and disadvantages of moving all keys to the YubiKey? This is one of the questions I really have not found a good answer of.
By moving all the keys to the YubiKey, there is nothing local on the computer except the Public key and stubs, no full keys on the computer to worry about.
It is also easy to have multiple computers using same certificate by moving the YubiKey with you to each computer and only fetch/import the Public key and trust it.
TheStigh wrote:
4) What I want to achieve
[QUESTION 4]:
a) I want to use the YubiKey for Windows Logon - This is setup using Challenge-Response mode HMAC-SHA1
b) I want to use the YubiKey for signing, certifying, encrypt/decrypt and Autheticate (none will work without the YubiKey inserted). This relates to question 3. Should I also then completely delete the certificate from Kleopatra?
c) I want to move the same config to a PC number 2, how do I do this?
This was more the tricky one.
a) Just follow the How To:
https://www.yubico.com/wp-content/uploa ... ion_en.pdfb) By moving with keytocard all keys, this is achieved
c) As explained in 3)
TheStigh wrote:
5) Finally, making a backup key
[QUESTION 5]: I need to make a backup YubiKey of the final result after question 4, how do I do this?
Still not solved!Source document for most if the replies are:
https://github.com/drduh/YubiKey-Guide/ ... public-key