Hello, I am trying to upgrade my java version from...
# help
r
Hello, I am trying to upgrade my java version from 11 to 17. currently I am using wiremock-jre8 artifact for our testing and working fine. when I run the tests with java 17, I get this error
Copy code
ERROR WireMock - Dynamic certificate generation is not supported because certificates cannot be generated; perhaps the sun internal classes are not available?
All sites will be served using the normal WireMock HTTPS certificate.
com.github.tomakehurst.wiremock.http.ssl.CertificateGenerationUnsupportedException: Your runtime does not support generating certificates at runtime
t
Hi Rakesh, try adding this to your Java startup command:
Copy code
--add-exports=java.base/sun.security.x509=ALL-UNNAMED
👍 1
131 Views