I have created SSL/TLS certs and pem file using self signed CA openssl for the mongodb replica set Steps followed: https://www.percona.com/blog/2018/05/31/mongodb-deploy-replica