Question about Storing gpg key on nitrokey

Hello,

I recently tried to adapt more features of my NK3. In this case I want to add my public gpg key to the nitrokey.

I read the handy tutorial here. Then, when I want to do so, the system ask me whether it is okay to move the key to the stick. What exactly means move? And what is moved? The private key and the public key? only the private key? Is my system after moving the key able to use the key for e.G. signing code without having the stick inserted?

Many thanks. :slight_smile:

T.L.

PS: I also ask because of the posts occuring in the last few weeks about Nitrokeys which are broken … so I am a little bit concerned about storing data on the key…

This operation will move the private key from the computer to the Nitrokey and delete it on the computer. The public key is not affected. You will not be able to use the key without the Nitrokey after it has been moved unless you manually export the (private!) key before it is used and then import it again after it has been moved.

Generally, I recommend to always have a backup of the key. Either on a second Nitrokey, or as a file stored in a secure, offline location, or both. (Having a Nitrokey as a backup is more convenient for regular use, but you cannot extract the private key anymore so you cannot import it to another Nitrokey, so having both makes sense.) Also make sure that the backup works as expected before deleting or moving the key.

Hello!

Thanks for the explanation.

I’ve read a little bit about the concept here.

Can you explain how to create a “public key URL on the card”.

Is this usefull? :slightly_smiling_face:

Regards,
T.L.

The card will just store any URL you set. You can upload your public key to your personal webpage or use a public key server to store it, or just omit the URL and manually distribute the public key.

Edit: of course you should not upload the private key, but the public key!