Generating a new keypair
gpg –gen-key
Adding a second email address
gpg –edit-key yourID
adduid or revuid
save or quit
Generating a revocation certificate (mykey key specifier e.g. 40240B2E)
gpg –output revoke.asc –gen-revoke mykey
Listing keys and keys with sigs
gpg –list-keys
gpg –list-sigs
Exporting a public key
gpg –armor -o publicKey.gpg –export [email protected]
Exporting a key to a public keyserver
gpg –keyserver blackhole.pca.dfn.de –send-keys [email protected]
Importing a public key
gpg –import aPublicKey.gpg
Importing automatically a key
gpg –keyserver blackhole.pca.dfn.de –recv-keys [email protected]
Once imported, you should check the key
gpg –fingerprint \A key’s fingerprint is verified with the key’s owner. This may be done in person or over the phone or through any other means as long as you can guarantee that you are communicating with the key’s true owner. If the fingerprint you get is the same as the fingerprint the key’s owner gets, then you can be sure that you have a correct copy of the key.
If the owner, the email and the fingerprint fits with your data, you can sign his public key:
gpg –sign-key [email protected]
gpg –send-key –keyserver blackhole.pca.dfn.de [email protected]
Deleting a key from your keyring
gpg –delete-keys [email protected]
Updating key information from keyserver
gpg –refresh-keys
Revoking a key (ONLY if your key was compromised or lost!)
gpg –import revoke.asc
gpg –keyserver blackhole.pca.dfn.de –send-keys [email protected]
- Board index
- Search
-
- It is currently Sat May 04, 2024 8:58 pm
- All times are UTC+05:30
Most important commands to use GnuPG
Linux OS Topics
Jump to
- Programmable Electronics
- ↳ Arduino
- ↳ Raspberry Pi
- ↳ Microcontrollers
- ↳ FPGA
- ↳ Digital Signal Processors
- ↳ Other
- Programming
- ↳ Web programming
- ↳ PHP & MySQL
- ↳ ASP & ASP.Net
- ↳ .Net & Other Programming
- ↳ .NET Programming
- ↳ Visual Basic Programming
- ↳ Java Programming
- ↳ C/C++ Programming
- Engineering
- ↳ Electronics & Electrical Engineering
- ↳ Embedded Systems
- ↳ Computer Science
- ↳ Software Engineering
- ↳ Data Structures & Algorithms
- ↳ Programming Languages & Compiler Theory
- ↳ Operating Systems
- ↳ Cryptography
- ↳ Computer Networks
- ↳ SQL & Database
- ↳ Computer Architecture
- ↳ Graphics & Vision
- ↳ Artificial Intelligence
- ↳ Neural Networks
- ↳ Multimedia
- ↳ Mathematics
- ↳ Other
- ↳ Control Systems & Robotics
- ↳ Mechanical
- ↳ Thermodynamics
- ↳ Fluid Dynamics
- ↳ Aerodynamics
- ↳ Manufacturing
- ↳ Energy
- ↳ Dynamics
- ↳ Statics
- ↳ Automobile
- ↳ Other
- ↳ Other
- Operating Systems
- ↳ Windows
- ↳ Linux
- ↳ Mac OS
- ↳ Android
- ????? ????
- ↳ ???????? ?????
- ↳ ??????? ???? ?????
- ↳ ????? ?????? ???? (Buy Guide)
- ↳ ??????? ???? ??????? (Where to buy)
- ↳ ????????? ???????? (Recommend - Complain - Review)
- General
- ↳ News & Announcements
- ↳ General Discussions
- ↳ Viruses, Trojans, Spyware and Adware
- ↳ Computer & Network Security
- ↳ Web Related
- Members Zone
- ↳ Project Assistance
- ↳ Advertising
- ↳ Jobs & Investment Opportunities
- ↳ Introductions
- ↳ Presents & Donations
- ↳ Entertainment
- ↳ Music & Albums
- ↳ Movies
- ↳ Games