PGP Command Line responds by exporting keys as ASCII armor (.asc) files into the directory currently active on the command line. To export the key, do the following: pgp -export (input) "Joe User"), or a portion of the user ID, (i.e. To export your public key you will need to have information about the key in order to identify it, which will be referred to in this document as (input). You can attach it to an email, paste the public key block text into the body of an email message (open with Notepad), or copy to a CD, for example. NOTES: Once you have exported your public key to a file, it is easy to distribute. This will display all the keys that are found on your keyring.Īfter the key pair is generated and identified, it is important to export the public portion (public key) of the key pair so others can import your public key and encrypt to you. NOTE: To display your new keypair enter the following command: pgp -list-keys 0X12345678), and a message that the key was successfully generated. PGP Command line will now generate your keypair. pgp -gen-key "Joe User" -key-type RSA -bits 2048 -passphrase "my passphrase" NOTE: Any information that contains spaces must be contained inside quotation marks.Įxample: The following example will show you how to create a 2048 Bit RSA key for Joe User, an employee of ACME Corp, with the passphrase "my passphrase". On the command line, enter: pgp -gen-key -key-type -bits -passphrase To create a key pair using PGP Command Line follow these steps: This article will use to identify information that you will need to enter that is specific to your individual keys.Īfter that, you will need to create a key pair. For Windows this is in the My Documents>PGP folder. This will create a pubring.pkr (public keyring) and secring.skr (private keyring) file in the default keyring location. To do so open a command prompt and type the following command: pgp -create-keyrings If you are not using PGP Keyrings from a PGP Desktop product, you will need to create blank keyring files. If you have PGP Desktop installed on the same Windows computer as the PGP Command Line, and you installed PGP Desktop to the default directory, then PGP Command Line will automatically locate and use your existing keyrings.
0 Comments
Leave a Reply. |