- Use of local key management by using a key file.
- Recommended Integration with a third-party key management appliance (such as CryptoHub) through the Key Management Interoperability Protocol (KMIP).
Change in version 4.0: MongoDB Enterprise on Windows no longer supports AES256-GCM. This cipher is now available only on Linux.
Start the server and enable encryption
Perform the following steps to start the MongoDB server and enable encryption by generating a new key on the CryptoHub through KMIP:Create a new master key on the CryptoHub, whichmongod uses to encrypt the keys mongod generates for each database.
Text
The file you specify in the
--kmipClientCertificateFile flag must contain both the signed MongoDB certificate and its associated private key.When connecting to the KMIP server, the mongod verifies that the specified
—kmipServerName matches the Subject Alternative Name (or, if SAN is not present, the Common Name) in the certificate presented by the KMIP server. If SAN is present, mongod does not match against the CN. If the hostname does not match the SAN (or CN), mongod fails to connect.Check the log file to verify that the key creation and usage succeeded.
If successful, the process logs the following messages:
None

