Problem configuring TLS using Ubuntu 20.04

I am experiencing this on ubuntu 20.04 ec2 for both mongodb community edition 4.4 and 5.

Immediately tls parameters are added to /etc/mongod.conf, mongo db stops accepting connections on port 27017. The systemd mongod.service process fails to start.

If tls is taken out of /etc/mongod.conf, the mongod.service is able to start.

Please let me know the commands i can use to get the logs you require for troubleshooting.

From your config file you can get the location of your mongod.log.It may give more details
Also show the parameters you added
Is the error due to missing paramter,syntax(yaml issues) or due to paramter itself?