https://linen.dev logo
#help
Title
# help
t

Tom White

01/08/2024, 9:18 PM
Hi, I just started using wiremock, seems like a great tool, I am using the official docker image. Are there any resources that would help me setup https proxy with a cert? Appears this is not part of the docker image.
o

Oleg Nenashev

01/09/2024, 8:07 AM
Hi. Indeed the docs are not great on that part. The steps would be: 1. Follow https://wiremock.org/docs/https/, but by using CLI arguments from https://wiremock.org/docs/standalone/java-jar/#command-line-options 2. You can see there is a bunch of HTTPs related arguments. Choose those that are needed for your configuration, and pass them using the
WIREMOCK_OPTIONS
argument or just as arguments in the
docker run
command] 3. Pass the certificate files via Docker volumes. The location paths are determined via CLI arguments
t

Tom White

01/09/2024, 6:43 PM
thank you for the help, I got it working!
👍 1