Generating secret keys for your Enpass Hub
Enpass Hub configuration requires secret keys for cryptographic signing when communicating with the Enpass Console and individual users’ Enpass apps.
To generate a secret key in a Linux environment:
- Open your terminal.
- Run either of the following commands:
-
tr -dc '[A-Za-z0-9!"#$%&(){}*+,-./:;<=>?@^_`~|]' < /dev/urandom | head -c 50 ; echo
-
openssl rand 200 | tr -dc '[A-Za-z0-9!"#$%&(){}*+,-./:;<=>?@^_`~|]' | head -c 50 ; echo
-
Either command will generate a random string of 50 characters with a mix of uppercase and lowercase letters, numbers, and special characters.
Never share this key
If this key is compromised, attackers could use it to create malicious session data.
Related topics
- Securing Enpass Hub connection with SSL Certificate Pinning
- Setting up a Linux server to be your Enpass Hub
- Setting up Enpass Hub and integrating with the Admin Console