When ssl was enabled for Mongo Hook, default settings included "allow_insecure" which caused that certificates were not validated. This was unexpected and undocumented. Users are recommended to upgrade to version 4.0.0, which fixes this issue.
https://lists.apache.org/thread/sqgbfqngjmn45ommmrgj7hvs7fgspsgm