TLS certificate issue in OpsManager for MongoDB Kubernetes Operator


I’ve deployed MongoDB Kubernetes Operator and created an instance of Opsmanager as container in Kubernetes. While working with http it’s fine, but while making it HTTPS, getting some errors and unable to access the URL of Opsmanager

Error: logType: “automation-agent-stderr”, “contents”: “Failure sending ping to server. Op: Post Err: x509: certificate is valid for -***-*******, not ops-manager-svc.mongodb.svc.cluster.local”.

The TLS certificate I used is generated with my organization while keeping that certificate it’s getting the above error.

What’s the possible solution whether I need to change the Opsmanager URL or what?