![]() ![]() If a key being imported already exists in the local keyring, the keys are merged. Both public and private keys will be imported if they exist in the file. As with exporting a key, this will be referred to as (input) in the examples. The file containing the key(s) to be imported must be in the current directory. You may import a public key from an ASCII Armor file (.asc) or from a text file, the process is the same for both. This will export the keypair to the c:\ drive, and will be called "my-own-keypair.asc", but you can use any path or filename that will work for you. Pgp -export-key-pair 0x12345678 -output c:\my-own-keypair.asc To export the keypair, use the following command if the Key ID for your key is "0x12345678": Example 1 The following example will show you how to export your public key using your key ID.Įxample 2 The following example will show you how to export your key using your user ID.Īfter the key pair is generated and identified, it is also highly recommended to export your keypair so you have a full backup of it and then store it in a safe location. PGP Command Line responds by exporting keys as ASCII armor (.asc) files into the directory currently active on the command line. Press "Enter" when the command is complete.NOTE: Remember that any information that contains spaces must be contained inside quotes. Export the key: To export the key, do the following: Make note of the key's username or number ID that you wish to export. Press Enter and the keys will be displayed. Display the keys To display the keys on your keyrings, open a command prompt and type the following: "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. Tip: Short version of listing a key is "pgp -l"Ī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. This will display all the keys that are found on your keyring. NOTE: To display your new keypair enter the following command: 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" Open a command prompt and enter the following:.Example: 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". NOTE: Any information that contains spaces must be contained inside quotation marks. Pgp -gen-key -key-type -bits -passphrase To create a key pair using PGP Command Line follow these steps: TIP: Make sure you do not share this keyring file with anyone for best security. Secring.skr indicates a keyring that contains private keys. Pubring.pkr indicates a keyring that contains only public keys. This article will use to identify information that you will need to enter that is specific to your individual keys. This will create a pubring.pkr (public keyring) and secring.skr (private keyring) file in the default keyring location.įor Windows this is in the Documents>PGP folder. PGP Command Line uses the Keyrings and Keys paradigm, so the first step to get started with PGP Command Line is to create a Keyring. Keyrings are basically files that contain the individual keys. Individual Keys, which are the unique identities to each PGP user are created and can be used for encryption and decryption. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |