wiremock / wiremock-docker

Wiremock Docker image
https://hub.docker.com/r/wiremock/wiremock
MIT License
211 stars 99 forks source link

JRE7/8 error on SSL certificates #36

Closed DawidJanczak closed 4 years ago

DawidJanczak commented 4 years ago

Hello,

I'm trying to use this image as a web proxy for our Selenium integration tests, but I can't get HTTPS proxying to work. I finally traced it down to something odd: visiting http://localhost:8080/__admin/certs/wiremock-ca.crt presents me with a page saying "HTTPS Browser Proxying, including CA certificate retrieval, requires wiremock-jre8". That error seems to be coming from https://github.com/tomakehurst/wiremock/blob/master/java7/src/main/java/com/github/tomakehurst/wiremock/admin/tasks/GetCaCertTask.java, but that's a version 7 build and this image clearly uses version 8. Not sure what's going on here so I figured I'd ask here. Oh and I'm using the rodolpheche/wiremock:2.27.1-alpine image.

rodolpheche commented 4 years ago

Hello,

Thanks for your report.

I remember that the Java 8 version doesn't run inside alpine container because of missing Server ALPNProcessors. I start investigating on this issue

rodolpheche commented 4 years ago

Hi,

It's fixed. Until the next release, you can use the master version of the image.

The issue was caused by the particularity of the alpine image that is based on musl (in replacement of the glibc). It needs to embed the libc6-compat dependency to work fine with jre8