[INFO] >>> Checking https://172.23.125.61:18443/health/live...
[INFO]
[WARNING] https://172.23.125.61:18443/health/live failed (javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target)
I checked the code and modified a little bit which works fine for me, resulting output:
Executing request GET https://172.23.125.61:18443/health/live HTTP/1.1
!!!!!!!!!!!!!!!!!!!!1 finished
Could you please check the code in version 1.4 and use code below if it helps in the fix?
Hi!
I am trying to use the plugin with HTTPS and even if I use the insecure flag with true, I am getting SSLHandshakeException exception:
`
Error:
[INFO] >>> Checking https://172.23.125.61:18443/health/live... [INFO] [WARNING] https://172.23.125.61:18443/health/live failed (javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target)
I checked the code and modified a little bit which works fine for me, resulting output: Executing request GET https://172.23.125.61:18443/health/live HTTP/1.1 !!!!!!!!!!!!!!!!!!!!1 finished
Could you please check the code in version 1.4 and use code below if it helps in the fix?
Code:
`import java.security.KeyManagementException; import java.security.KeyStoreException; import java.security.NoSuchAlgorithmException; import java.security.cert.CertificateException; import java.security.cert.X509Certificate;
import org.apache.http.client.methods.HttpGet; import org.apache.http.conn.ssl.NoopHostnameVerifier; import org.apache.http.conn.ssl.SSLConnectionSocketFactory; import org.apache.http.conn.ssl.TrustStrategy; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClients; import org.apache.http.ssl.SSLContextBuilder; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.junit.jupiter.MockitoExtension;
@ExtendWith(MockitoExtension.class) class HttpClientTest {
}`