Step-by-Step Guide: Encrypting a File Using the Ott Product Security PGP Public Key
- Save the Public Key to a File
Create a file named public_key.asc and copy the contents below in plain text till the END PGPB PUBLIC KEY BLOCK into the file exactly as shown:
-----BEGIN PGP PUBLIC KEY BLOCK-----
mDMEalerxBYJKwYBBAHaRw8BAQdATTyriRrVlaaucMowAYpcmSyi/gDbDCltlcvDA+gif0i0T3Byb2R1Y3RzZWN1cml0eSAoS2V5IGZvciBlbmNyeXB0aW5nIGluY29taW5nIGVtYWlscy4pIDxwcm9kdWN0c2VjdXJpdHlAb3R0LmNvbT6IkwQTFgoAOxYhBLwQ2jom0og0hulc41Fynu0f+0jtBQJqV6vEAhsDBQsJCAcCAiICBhUKCQgLAgQWAgMBAh4HAheAAAoJEFFynu0f+0jtglgBAKWfk3mE/lmJuMUw6I20tm9wJ5iEblUsLNqs8HF36jsyAPwOzLxFjDllDHe5tBbgKLLTdmSPa774UoMLSs/5u9M0BLg4BGpXq8QSCisGAQQBl1UBBQEBB0DsYaE6br6DM1BjlVo0Ay9to9NWPvVEM2Mxx1LpF+WvCgMBCAeIeAQYFgoAIBYhBLwQ2jom0og0hulc41Fynu0f+0jtBQJqV6vEAhsMAAoJEFFynu0f+0jt7GcBAK48X+ofhLZfShgdE8Nq/zMKn7ria6cdM/BGtII2B+4JAQCwecYvUe0xRKG/H3o9lNi3bSVJFAhga+G1lwiXtlTHBA===gllB
-----END PGP PUBLIC KEY BLOCK----- - Open a Command Prompt or Terminal
Open either:- Windows: Command Prompt or PowerShell
- Linux/macOS: Terminal
- public_key.asc
- The file(s) you wish to encrypt
cd /path/to/your/files - Import the Public Key
Import the public key into your local GPG keyring:
gpg --import public_key.asc
You should receive a message indicating that the key was successfully imported. Verify the Key - Verify the Key
Confirm that the key has been imported correctly:
gpg --list-keys
Look for the recipient:productsecurity@ott.com - Encrypt and Sign the File
To encrypt a file named filename.txt, run:
gpg --encrypt --recipient productsecurity@ott.com filename.txt
This command will:- Encrypt the file using the Ott Product Security public key.
- Create an encrypted output file named:
- Send the Encrypted File
Attach the generated .gpg file to your email and send it to the Ott Product Security team along with other information requested to email: productsecurity@ott.com
Example:
filename.txt.gpg
Only the holder of the corresponding private key can decrypt the file.