MongoServerSelectionError: unable to verify the first certificate

We’ve got this problem too. Did you get a solution? The mongodb we’re trying to connect to is also in ec2.