Hey all! I'm trying to proxy an HTTPS host with Wi...
# wiremock-java
k
Hey all! I'm trying to proxy an HTTPS host with WireMock. To this, I'm trying to start WireMock with the below command
java -jar wiremock-standalone-3.13.1.jar --https-port 443 --keystore-type JKS --https-keystore wiremock.jks --keystore-password changeit --disable-http
I'm using Java 21 to do this and get the following error:
Copy code
java.lang.RuntimeException: java.security.UnrecoverableKeyException: Get Key failed: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
Attached is the file in the
mappings
directory
t
Did you create the keystore with Java21 also? If not, this would be worth a try. Also, make sure you’ve got the password right as this can manifest as non-obvious errors if the password doesn’t match.