ines rattab
01/19/2023, 7:51 AMclient_cacerts.jks is not a valid keystore
, although it is valid , here is the code
WireMockServer wireMock = new WireMockServer(wireMockConfig()
//.port(8080)
.httpsPort(8443)
.needClientAuth(true)
.keystoreType("jks")
.keystorePath("client_keystore.jks") // Either a path to a file or a resource on the classpath
.keystorePassword("secret")
.keyManagerPassword("secret")
.trustStorePath("client_cacerts.jks")// The password used to access the keystore. Defaults to "password" if omitted
.trustStorePassword("secret")
);
@Test
void test() {
wireMock.start();
wireMock.stubFor(
WireMock.get("/hello")
.willReturn(WireMock.ok("world"))
);
Any thoughts what might be causing this error ?