Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/use lambdas #2114

Merged
merged 7 commits into from
Mar 28, 2023
Merged

Conversation

timtebeek
Copy link
Contributor

For #2111

options()
.enableBrowserProxying(true)
.caKeystorePath(Files.createTempFile("notakeystore", "jks").toString()))
::start);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This now fails early in CI, because it's not start that's throwing an error here, it's loading the keystore.

HttpsBrowserProxyAcceptanceTest > failsIfCaKeystorePathIsNotAKeystore() FAILED
    java.io.IOException: Short read of DER length
        at java.base/sun.security.util.DerInputStream.getLength(DerInputStream.java:571)
        at java.base/sun.security.util.DerValue.init(DerValue.java:411)
        at java.base/sun.security.util.DerValue.<init>(DerValue.java:352)
        at java.base/sun.security.util.DerValue.<init>(DerValue.java:365)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1[97](https://github.com/wiremock/wiremock/actions/runs/4524677353/jobs/7968666662#step:9:98)3)
        at java.base/sun.security.util.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:222)
        at java.base/java.security.KeyStore.load(KeyStore.java:1479)
        at com.github.tomakehurst.wiremock.common.ssl.KeyStoreSource.load(KeyStoreSource.java:42)
        at com.github.tomakehurst.wiremock.common.ssl.KeyStoreSettings.loadStore(KeyStoreSettings.java:55)
        at com.github.tomakehurst.wiremock.jetty11.SslContexts.toX509KeyStore(SslContexts.java:113)
        at com.github.tomakehurst.wiremock.jetty11.SslContexts.buildSslContextFactory(SslContexts.java:71)
        at com.github.tomakehurst.wiremock.jetty11.SslContexts.buildManInTheMiddleSslContextFactory(SslContexts.java:52)
        at com.github.tomakehurst.wiremock.jetty11.Jetty11HttpServer.applyAdditionalServerConfiguration(Jetty11HttpServer.java:123)
        at com.github.tomakehurst.wiremock.jetty.JettyHttpServer.<init>(JettyHttpServer.java:[109](https://github.com/wiremock/wiremock/actions/runs/4524677353/jobs/7968666662#step:9:110))
        at com.github.tomakehurst.wiremock.jetty11.Jetty11HttpServer.<init>(Jetty11HttpServer.java:44)
        at com.github.tomakehurst.wiremock.jetty.JettyHttpServerFactory.buildHttpServer(JettyHttpServerFactory.java:31)
        at com.github.tomakehurst.wiremock.WireMockServer.<init>(WireMockServer.java:75)
        at com.github.tomakehurst.wiremock.HttpsBrowserProxyAcceptanceTest.failsIfCaKeystorePathIsNotAKeystore(HttpsBrowserProxyAcceptanceTest.java:350)

@tomakehurst tomakehurst merged commit 8e9a94c into wiremock:master Mar 28, 2023
@tomakehurst
Copy link
Member

Thanks @timtebeek!

@timtebeek timtebeek deleted the refactor/use-lambdas branch March 28, 2023 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants