OSX
Installation
- Download and install GPG Tools
Key Generation
- Launch GPG Keychain
- Click
New
to generate a new key pair - Enter your full name (or company name) and email address.
- Expand
Advanced Options
-Key type
should beRSA and RSA
-Length
should be4096
- Choose a secure passphrase
- Click
Generate Key
- Wait until the key is generated (moving the mouse and typing randomly on the keyboard can help speed things up).
Encrypting a file
- Launch the OSX Terminal app
- Download the HighFive Public Key by running
gpg --keyserver pgp.mit.edu --recv-key 56720B40
- Encrypt and sign the file by running
gpg --local-user <KEY_ID> --output /path/to/file.gpg --armor --sign --encrypt --recipient security@highfive.com /path/to/file
(Replace<KEY_ID>
with the Key ID or E-mail of the key you generated)
Exporting your PGP public key
- Launch the OSX Terminal app
- Export your PGP public key by running
gpg --armor --output public_key.gpg --export <KEY_ID>
(Replace<KEY_ID>
with the Key ID or E-mail of the key you generated)
References
Linux (Ubuntu)
Installation
- Open a terminal window
- Run
sudo apt-get install gnupg
Key Generation
- Open a terminal window
- Run
gpg --gen-key
and answer the questions - SelectRSA and RSA
for key type - Use4096
for key size - Use your full name or company name for real name
Encrypting a file
- Open a terminal window
- Download the HighFive Public Key by running
gpg --keyserver pgp.mit.edu --recv-key 56720B40
- Encrypt and sign the file by running
gpg --local-user <KEY_ID> --output /path/to/file.gpg --armor --sign --encrypt --recipient security@highfive.com /path/to/file
(Replace<KEY_ID>
with the Key ID or E-mail of the key you generated)
Exporting your PGP public key
- Open a terminal window
- Export your PGP public key by running
gpg --armor --output public_key.gpg --export <KEY_ID>
(Replace<KEY_ID>
with the Key ID or E-mail of the key you generated)
References
Windows
Installation
- Download and install Gpg4win
Key Generation
- Start Kleopatra
- Click
File -> New Certificate
- Click
Create a personal OpenPGP key pair
- Enter your full name (or company name) and email address
- Click
Advanced Settings
- Check bothRSA
and ``+RSA- Ensure a key size of
4,096 bits` is selected for both - Ensure `Signing` is checked under `Certificate Usage` - Click
Next
to review the details of the key - Finally, click
Create Key
and enter secure passphrase
Encrypting a file
- Start Kleopatra
- Go to
Settings -> Configure Kleopatra
- Under
Directory Services
, clickNew
ifkeys.gnupg.net
is not in the directory list already - Click
Apply
, thenOK
- Click
Lookup Certificates on Server
- Search for
0x56720B40
, thenImport
the found key - Find the file to sign and encrypt in Windows Explorer
- Right-click on the file and choose
Sign and encrypt
- Ensure that
-
Sign and Encrypt (OpenPGP only)
is selected -Text output (ASCII armor)
is selected - When asked
For whom do you want to encrypt?
, chooseHighfive Technologies, Inc.
and clickAdd
- Click
Next
, choose the appropriate signing certificate, then clickSign & Encrypt
and type in your passphrase
Exporting your PGP public key
- Start Kleopatra
- Find the key you wish to export (the one you used for signing)
- Right-click on the key and click
Export Certificates...
- Choose the folder where you wish to save the public key
- Click
Save