Skip to content

Instantly share code, notes, and snippets.

@BrunoBonacci
Created February 22, 2013 00:22
Show Gist options
  • 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
@IshaRu0113
Copy link

1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment