Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,21 @@ authentication with specific MongoDB deployments:
Generate a Key File
-------------------

Use the following command at the system shell to generate pseudo-random
Use the following openssl command at the system shell to generate pseudo-random
content for a key file:

.. code-block:: sh

openssl rand -base64 753
openssl rand -base64 741

.. note::

The length should not be too high and should be a multiple of 3.

On Windows, the maximum size you can request and not have to deal with equals signs is 741.

On non-Windows systems, the maximum is 753.

Be aware that MongoDB strips whitespace characters (e.g. ``x0d``,
``x09``, and ``x20``,) for cross-platform convenience. As a result,
the following keys are identical:
Expand Down