Add support for ssl connections in Mongo check

Fix #848