Pavel Rappo
03/20/2025, 1:49 PMYour runtime does not support generating certificates at runtimeor
certificates cannot be generated; perhaps the sun internal classes are not available?WireMock could suggest to use JDK 17 with
--add-opens java.base/sun.security.x509=ALL-UNNAMED
.
A more involved option would be to re-implement certificate signing using a keytool
sub-process or a 3rd party security library.
However, to my mind, the most interesting option is this: don't sign the certificates at all, and instead present a fixed WireMock certificate to the client. If WireMock does this, then the entire problem will go away.
The last option is based on my understanding that signing a target endpoint certificate with WireMock CA certificate does not give us any more security than just a WireMock certificate itself. It's already MITM, and the client trusts WireMock to do the right thing: WireMock should either ignore the endpoint certificates or have them in its truststore.Tom
03/20/2025, 2:13 PMTom
03/20/2025, 2:14 PMPavel Rappo
03/20/2025, 2:17 PMPavel Rappo
03/20/2025, 2:17 PMTom
03/20/2025, 2:19 PMPavel Rappo
03/20/2025, 2:21 PMkeytool
or BC.Pavel Rappo
03/20/2025, 2:25 PMTom
03/20/2025, 2:28 PMPavel Rappo
03/20/2025, 2:31 PM