How to: |
The following sections describe how to create the key rings, list the keys, and import/export public keys using the GNU Privacy Guard (GnuPG) utility. If you are using another PGP implementation, then consult the accompanying documentation to learn how to accomplish the same tasks.
The iWay Pretty Good Privacy (PGP) Extension requires access to the public key ring and the secret key ring. To create key rings using the GNU Privacy Guard (GnuPG) utility:
http://www.gnupg.org/download/
For Windows, either the full or light version of Gpg4win is acceptable, since only the command line interface is required.
cd C:\Program Files (x86)\GNU\GnuPG
gpg2 --gen-key
You will be prompted to enter the key length, expiration, user real name, user email address, and an optional comment.
Make note of the passphrase, since your master key becomes unusable without it.
gpg2 --edit-key user@host
where:
Is the actual user email address previously entered.
addkey
save
gpg2 --list-keys
The short key IDs and the user IDs are displayed.
gpg2 --list-secret-keys
The short key IDs and the user IDs are displayed.
gpg2 --fingerprint --fingerprint
The second identical option is required to view the fingerprints of the subkeys.
gpg2 --list-secret-keys --fingerprint
Remember, the fingerprint of a private (sub)key is the same as the fingerprint of the corresponding public (sub)key.
gpg2 --list-keys --with-colon
The output of this command is intended to be machine readable. The long key ID is the field containing 16 hexadecimal digits.
gpg2 --list-secret-keys --with-colon
To export your public key to send to a partner, enter the following command:
gpg2 --armor --output pub.asc --export user@host
where:
Is the actual user email address in the User ID.
The output is in the pub.asc file. This file must be distributed to the communication partners.
To import the public key of a partner, enter the following command:
gpg2 --import filepath
where:
Is the actual file path.
iWay Software |