# Error execute mongodb autentication ssl

**URL:** <https://forum.liquibase.org/t/error-execute-mongodb-autentication-ssl/7624>\
**Category:** Uncategorized\
**Created:** [December 14, 2022, 4:55pm UTC](https://forum.liquibase.org/t/error-execute-mongodb-autentication-ssl/7624 "2022-12-14T16:55:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![crishpg](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@crishpg](https://forum.liquibase.org/u/crishpg)\
**Post date:** [December 14, 2022, 4:55pm UTC](https://forum.liquibase.org/t/error-execute-mongodb-autentication-ssl/7624/1 "2022-12-14T16:55:14Z")

</div>

I’m trying to run liquibase with Mongodb. I am getting the following error  
contain liquibase.properties  
liquibase.command.url=mongodb://address server mongo:port/database?connectTimeoutMS=300000&replicaSet=mySet&authSource=MassadadosDB&tls=true&tlsCAFile=db\_mongo\_pem.cert  
Console Cli = output error  
Caused by: Timed out after 30000 ms while waiting for a server that matches com.mongodb.client.internal.MongoClientDelegate$1@8a2a6a. Client view of cluster state is {type=REPLICA\_SET, servers=[{address=DNSSERVER, 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}}, 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}}, {address=: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}}]

---

<div class="post-metadata">

**Author:** ![SreekanthReddyU](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@SreekanthReddyU](https://forum.liquibase.org/u/SreekanthReddyU)\
**Post date:** [January 20, 2023, 5:45pm UTC](https://forum.liquibase.org/t/error-execute-mongodb-autentication-ssl/7624/2 "2023-01-20T17:45:40Z")

</div>

Hello @crishpg were you able to find resolution for this? if yes, could you please share it?

---

<div class="post-metadata">

**Author:** ![crishpg](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@crishpg](https://forum.liquibase.org/u/crishpg)\
**Post date:** [January 20, 2023, 5:59pm UTC](https://forum.liquibase.org/t/error-execute-mongodb-autentication-ssl/7624/3 "2023-01-20T17:59:41Z")

</div>

hello @SreekanthReddyU . I haven’t found a solution yet. If you have a solution, I’m very happy to receive your feedback.

---

<div class="post-metadata">

**Author:** ![SreekanthReddyU](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@SreekanthReddyU](https://forum.liquibase.org/u/SreekanthReddyU)\
**Post date:** [January 20, 2023, 7:28pm UTC](https://forum.liquibase.org/t/error-execute-mongodb-autentication-ssl/7624/4 "2023-01-20T19:28:08Z")

</div>

@crishpg , I was just able to overcome the error with the solution mentioned here: [Unable to execute liquibase update on the new mssql dsetup](https://forum.liquibase.org/t/unable-to-execute-liquibase-update-on-the-new-mssql-dsetup/7466)  
Check if it works for you.

---

<div class="post-metadata">

**Author:** ![crishpg](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@crishpg](https://forum.liquibase.org/u/crishpg)\
**Post date:** [January 20, 2023, 7:33pm UTC](https://forum.liquibase.org/t/error-execute-mongodb-autentication-ssl/7624/5 "2023-01-20T19:33:00Z")

</div>

@SreekanthReddyU  
I am very happy for you. Are you using mongo? if so. Can you share connection url with me?  
If you want, you can remove the example-only credentials.  
Thanks a lot for the help.

---

<div class="post-metadata">

**Author:** ![SreekanthReddyU](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@SreekanthReddyU](https://forum.liquibase.org/u/SreekanthReddyU)\
**Post date:** [January 20, 2023, 7:52pm UTC](https://forum.liquibase.org/t/error-execute-mongodb-autentication-ssl/7624/6 "2023-01-20T19:52:40Z")

</div>

We are using MSSQL.

jdbc:sqlserver://sql.company.com:12345;database=DBNAME;integratedSecurity=false;encrypt=true;trustServerCertificate=true;
