likejudo
likejudo

Reputation: 3736

SpringBoot in IntelliJ. unable to find valid certification path to requested target

IntelliJ Community Edition, Java8, Spring Boot 2.1.11

Trying to do a basic linkedIn course (Building Reactive apps with Spring Boot2 by Chris Anatalio)

I am unable to run the application. It uses an embedded Mongo DB.

failed
:ReactivespringApplication.main()
org.springframework.beans.BeanInstantiationException: Failed to instantiate [de.flapdoodle.embed.mongo.MongodExecutable]: Factory method 'embeddedMongoServer' threw exception; nested exception is de.flapdoodle.embed.process.exceptions.DistributionException: prepare executable
de.flapdoodle.embed.process.exceptions.DistributionException: prepare executable
java.io.IOException: Could not open inputStream for https://downloads.mongodb.org/win32/mongodb-win32-x86_64-3.5.5.zip
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Update:

I found that LinkedIn provides an 'end' code set for each lecture. I downloaded and imported it and it ran fine. I dont know what is different. Did a WinMerge but no obvious differences.

Upvotes: 1

Views: 9694

Answers (1)

Sachin
Sachin

Reputation: 176

Been in the same situation, Root cause is that you are behind a proxy server which requires ssl certificate to communicate/download.

Resolution: 1. Try different network, this worked for me when I connected to a mobile hotspot. 2. import/create a ssl certificate or bypass ssl, am also still exploring this path.

Upvotes: 1

Related Questions