Skip to content

Instantly share code, notes, and snippets.

@BrunoBonacci
Created February 22, 2013 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrunoBonacci/5009746 to your computer and use it in GitHub Desktop.
Save BrunoBonacci/5009746 to your computer and use it in GitHub Desktop.
MongoDB key generation
# generate the key and make it readable only by mongo server
sudo openssl rand -base64 753 > /etc/mongodb.key
sudo chown mongod:mongod /etc/mongodb.key
sudo chmod 0600 /etc/mongodb.key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment