How do I create a PGP subkey?

How do I create a PGP subkey?

Create a new subkey for signing.

  1. Find your key ID: gpg –list-keys yourname.
  2. gpg –edit-key YOURPRIMARYKEYID.
  3. At the gpg> prompt: addkey.
  4. This asks for your passphrase, type it in.
  5. Choose the “RSA (sign only)” key type.
  6. It would be wise to choose 4096 (or at least 2048) bit key size.

How do I add PGP public key to keyring?

Import PGP Keys

  1. Double-click the . asc file that includes the public key. Encryption Desktop recognizes the file format and opens the Select key(s) dialog box.
  2. If you are prompted, specify to open the file.
  3. Select the public key(s) you want to add to your keyring and click Import. The key is then added to your keyring.

What is apt-key?

apt-key is a program that is used to manage a keyring of gpg keys for secure apt. The keyring is kept in the file /etc/apt/trusted. gpg (not to be confused with the related but not very interesting /etc/apt/trustdb. gpg). apt-key can be used to show the keys in the keyring, and to add or remove a key.

How do I create a GPG key?

Add a GPG key Click GPG keys. > Add key. Copy your GPG key. Paste your GPG key in the Key field, then click Add key.

What are the advantages of using subkeys in OpenPGP?

Another advantage to the use of the subkeys is that in the event of loss or theft of the secret keys of the subkeys, you only need to revoke the subkey without having to revoke the master key (the one that allows to certify other keys). Let’s start by creating the master key, the one that will hold our identity.

How to create a master key for OpenPGP?

Let’s start by creating the master key, the one that will hold our identity. Then, we create subkeys to sign, encrypt and authenticate. We will choose to generate our key in a custom way and create the certification key for Wilson.

Can a GPG sign an OpenPGP key pair?

When creating an OpenPGP key in its basic mode, gpg will create a key pair that allows you to sign and certify. To increase the security of our key, we will use a special feature of OpenPGP: the subkeys. OpenPGP allows to create subkeys with a specific use: sign, encrypt and authenticate.

What are the two main uses of OpenPGP?

There are two main uses of OpenPGP: encryption, and signing. When you create an OpenPGP key with GPG (which is the focus of this article), you create two subkeys by default: one for encryption and one for signing. The subkeys discussed in this article are only used for signing.