MongoDB supports encrypted data transport (communication between your
application and the database engine) but requires some configuration on both the
client and the server in order to set things up correctly.
Below, I'll be discussing generating your own SSL certificate and configuring
the server to load this certificate on startup,