Rocketchat to mongo connection issue with upgrade to 3.8.1


We are using rocketchat docker with a mongo backend with a self signed cert. We set NODE_TLS_REJECT_UNAUTHORIZED to 0 in the docker compose and were able to connect up to version 3.1 with no issue. when i attempt to roll to version 3.8.1 I get the following errors when rocketcaht attempts to start.

Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification
MongoNetworkError: failed to connect to server [servername] on first connect [Error: self signed certificate in certificate chain

Server Setup Information

  • Version of Rocket.Chat Server: 3.8.1
  • Operating System: centos 7
  • Deployment Method: docker
  • Number of Running Instances: 2
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version:
  • Proxy:
  • Firewalls involved:

Any additional Information