Create a GPG Key
GnuPG (GPG) problably is installed already in your linux disctro
Install with your packages manager
Generate a GPG Key Pair
Run the following command in your terminal:
Follow the instructions:
- Key type (e.g., RSA and RSA)
* RSA (default)
- Key size (e.g., 2048 or 4096 bits)
* Choose 4096 bits for maximum security
- Key expiration (e.g., never or after a set time)
* Press Enter to set the key to never expire, or specify a duration (e.g., 2y for 2 years)
- User ID (name, email, and optional comment)
* Enter your real name, email address
- Passphrase (to protect your private key)
* Create a strong, memorable passphrase (password)
After you complete these steps, GPG generates the key pair and stores it in your keyring.
The final output in the terminal confirms the creation, for example:
Verify and Export Your Key
List your keys to confirm creation:
The output will be something like:
Your key ID (e.g., 3AA5C34371567BD2)
----------
----------
© DarknessCode