Closed behappiest closed 1 year ago
I am simulating HTTPS API using hoverfly-java, when simulating it gives below error Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target This is how I am initiating
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
private Hoverfly initHoverfly(HoverflyMode hoverflyMode) { LocalHoverflyConfig localHoverflyConfig = localConfigs(); localHoverflyConfig.disableTlsVerification(); localHoverflyConfig.proxyPort(hoverflyProxyPort).adminPort(hoverflyAdminPort); hoverfly = new Hoverfly(localHoverflyConfig, hoverflyMode); hoverfly.setMode(hoverflyMode); return hoverfly; }
Above code is executing from @BeforeEach
But simulating localhost work.
Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Hoverfly Version - .0.14.4
imported hoverfly certificate in cacert solved the issue
I am simulating HTTPS API using hoverfly-java, when simulating it gives below error
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
This is how I am initiatingAbove code is executing from @BeforeEach
But simulating localhost work.
Steps to reproduce the issue
Observed result
Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target