Open PRABAREPO opened 3 years ago
Can you provide the version of the JVM you are using?
The trustStore
must be a Java trust store (JKS format), you can't use a certificate. You can create a JKS keystore and import the PFX file into it. See https://blogs.oracle.com/blogbypuneeth/steps-to-create-a-jks-keystore-from-pfx-file
Pact verification is failing while validating provider endpoint with pfx certification
Below section is part of Pact verification section in my POM.xml :
When I do pact verification using "mvn pact:verify" command in command prompt, I am getting below error message.
Request Failed - PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:321) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:264) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:259) at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:642)
Could anyone help on this ?