For setting up x509 certificates in MongoDB, please follow the links below:
- MongoDB security guide on x509 Authentication
- Third party blog explaining in detail for x509 authentication
Once you have configured the x509 authentication in MongoDB, then you will be having the .pem and .crt file for the database user which is going to access the database.
Then add/update the following configuration in config.json file.