Dear All,
We are trying to start ops manager service after enabling TLS . Able to start the DB with TLS details
tls:
mode: requireTLS
certificateKeyFile: /var/log/mongodb/certificate/mypemfile.pem
CAFile: /var/log/mongodb/certificate/mongodbCA.crt
disabledProtocols: TLS1_0
security:
authorization: enabled
keyFile: /var/log/mongodb/keyfile
clusterAuthMode: x509
DB was able to stat and able to connect too. But when i try to start ops manager service i am facing below error :-
Failure to connect to configured mongo instance: Config{loadBalance=false, encryptedCredentials=false, ssl=‘true’, dbNames=‘’, uri=mongodb://redacted-credentials@localhost:port/?directConnection=true&tls=true&tlsCertificateKeyFile=%2Fvar%2Flog%2Fmongodb%2Fcertificate%5782.pem&tlsCAFile=%2Fvar%2Flog%2Fmongodb%2Fcertificate%2FmongodbCA.crt&authSource=admin&appName=mongosh+2.1.1} Error: Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:port, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketWriteException: Exception sending message}, caused by {javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}, caused by {sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}, caused by {sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}}]
Pre-flight checks failed. Service can not start.
Preflight check failed.
Thanks & Regards,
Amit