Hi everyone, I am looking for some guidance on how...
# help
b
Hi everyone, I am looking for some guidance on how to get WireMock standalone working with my application running on an Android emulator trying to make an HTTPS call. WireMock setup: java -jar wiremock-standalone-3.0.4.jar --port 8080 --https-port 443 --verbose --print-all-network-traffic --https-keystore MITM.jks --keystore-type JKS --enable-browser-proxying --trust-all-proxy-targets The MITM.jks file was generated from the MITM cert. MITM cert setup link: https://docs.mitmproxy.org/stable/howto-install-system-trusted-ca-android/ I followed the link above and added the MITM cert to my Android emulator as a system ca cert Emulator proxy setup: Hostname: 127.0.0.1 and port: 8080 Application setup: The app is running as is with no network change. The goal is to capture the https calls made from the app and mock them. Also an additional goal is to forward some request to the original backend server. Currently I am not able to get this to work and am seeing 2023-09-11 114444.141 Opened Socket[addr=/127.0.0.1,port=59978,localport=8080] 2023-09-11 114444.142 Incoming bytes: CONNECT 23.223.244.152:443 HTTP/1.1 2023-09-11 114444.142 Outgoing bytes: HTTP/1.1 400 Bad Request Content-Type: text/html;charset=iso-8859-1 Content-Length: 50 Connection: close