Created
February 22, 2013 00:22
-
-
Save BrunoBonacci/5009746 to your computer and use it in GitHub Desktop.
MongoDB key generation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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