Which command starts the process of creating a new GPG key pair?

Study for the OSCP Linux Exam. Use our flashcards and multiple-choice questions to test your skills. Each query comes with detailed hints and explanations to enhance your preparedness. Get ready to conquer the exam!

Multiple Choice

Which command starts the process of creating a new GPG key pair?

Explanation:
Starting a new GPG key pair is done with gpg --gen-key. This invokes GnuPG’s interactive key-generation workflow, prompting you for the key type and size, whether it should expire, and your user identity details (name and email), plus a passphrase. When you finish, GnuPG creates a private key to protect on your side and a public key to share. The other options don’t start key creation: listing keys shows what you already have, redirecting output simply writes to a file, and tar archives files into a compressed package.

Starting a new GPG key pair is done with gpg --gen-key. This invokes GnuPG’s interactive key-generation workflow, prompting you for the key type and size, whether it should expire, and your user identity details (name and email), plus a passphrase. When you finish, GnuPG creates a private key to protect on your side and a public key to share. The other options don’t start key creation: listing keys shows what you already have, redirecting output simply writes to a file, and tar archives files into a compressed package.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy