MONGODB-X509 authentication

Gustavo,

This is what I need to do to make MONGODB-X509 authentication to work. I'm happy to make whatever changes you deem necessary. Have a great day.

Gabriel
Would you mind to move this to right above the function where it is used?