Skip to content

Modifying the instructions around openssl usage. #791

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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