https://linen.dev logo
Title
a

Andreas Weber

02/07/2023, 10:02 AM
Hi, is it possible to let wiremock reload the provided keystore when the content changed? In a test, the used certificate is updated - but yet I have found no solution to tell wiremock to use the new certificate loaded with
@Rule
public WireMockRule wireMock = new WireMockRule(wireMockConfig().dynamicHttpsPort().keystorePath("./selfsigned-localhost.jks")
t

Tom

02/07/2023, 10:04 AM
Hi @Andreas Weber at the moment itโ€™s necessary to restart the server to reload the keystore unfortunately. IIRC this is a limitation of Jetty, which WireMock is built on.
a

Andreas Weber

02/07/2023, 10:07 AM
Oh thats perfect, I didnt even think about that possibility ๐Ÿ™‚ Thanks!
๐Ÿ‘ 1