grundic / teamcity-web-parameters

Teamcity plugin that provides dynamic parameters for builds from web service
MIT License
44 stars 16 forks source link

unable to find valid certification path to requested target #30

Closed apodsukhin closed 3 years ago

apodsukhin commented 3 years ago

Hi, all!. I'am getting such an error javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

image

TeamCity version - 2018.1.1 (build 58406).

Google tells me something about, that I need to install certificate from site for Java keystore. https://www.java-samples.com/showtutorial.php?tutorialid=210

But I have no Jave (JRE, JVM) at my TeamCity server. @grundic , please, take a look for this issue - Do I need to have Java installed for this plugin work?

apodsukhin commented 3 years ago

So, it does not need to install JRE. Keytool is in \jre\bin\, cacerts file is in \jre\lib\security\cacerts. And issued was fixed, then I execute this command keytool -import -alias -keystore \jre\lib\security\cacerts -file .cer