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.
Tom
01/20/2023, 11:01 AM
I'll caveat that I haven't tried this
a
Alessandro Bramati
01/20/2023, 1:49 PM
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
Tom
01/20/2023, 1:50 PM
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).
Tom
01/20/2023, 1:51 PM
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
Alessandro Bramati
01/20/2023, 1:57 PM
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.