This message was deleted.
# wiremock-java
s
This message was deleted.
t
Hi @Alessandro Bramati it's not possible to load multiple keystores, but a keystore can contain many certificates so you may find that combining them all into one will do what you need.
I'll caveat that I haven't tried this
a
Hi @Tom, thank you for the quick reply. Yes, the other solution is "merging" different keystores/truststores into one so Wiremock can load it. Any other solution?
t
I can’t think of any at the moment, except if you were happy to run your own fork and update the code to read multiple stores (or create some kind of in-memory composite
KeyStore
impl).
If you’re running WireMock from your own Java code, perhaps you could programmatically assemble a single keystore file from several others before starting the server?
a
Thanks @Tom, yes the first solution is the better one imho but I will try to merge the configured keystores into one at runtime before starting Wiremock.