Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Allow mongodb ssl connections by adding missing parameters for cert, … #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

taxilian
Copy link

As the project is, SSL connections were not fully supported. Most people who don't use ssl connections to mongodb servers think all you need is to set the ssl parameter in the connection string, but if you follow the best practices you need to provide your own SSL client certificates for connecting to the servers as well.

This PR adds three command line arguments which resolve this issue:

  • --mongo-sslcert - SSL public certificate
  • --mongo-sslkey - SSL private key
  • --mongo-sslca - SSL CA certificate to be used to verify the server certificate

I have tested this code and it works to connect to our replicaset over SSL

@CLAassistant
Copy link

CLAassistant commented Aug 6, 2020

CLA assistant check
All committers have signed the CLA.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants