[HOW TO ENCRYPT A VPN OR CONFIG FILE]
Encrypt a configuration file containing credentials before sending or storing it.
- Select the config file. Choose your .ovpn, .conf, .env, .yaml or .pem file. Any text-based configuration works.
- Enable compression. Config files are plain text and compress very well, so the encrypted output is often much smaller than the original.
- Choose a password or random key. Use a long passphrase or generate a random 256-bit key, and store it in a password manager.
- Send the file and the key separately. Email the encrypted file and pass the key by phone or a different messaging app, so intercepting one channel is not enough.
- Rotate anything already exposed. If the config was previously sent unencrypted or committed to a repository, issue new credentials rather than relying on deletion.