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
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 certificateI have tested this code and it works to connect to our replicaset over SSL