npx wiremock --record-mappings --port 8081 --preserve-host-header --verbose --proxy-all="https://homolog-api.com.br" --https-port 443 --enable-browser-proxying
And this is what I get when I use a curl on the https port
* Trying ::1...
* TCP_NODELAY set
* Connection failed
* connect to ::1 port 443 failed: Connection refused
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/cert.pem
CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (OUT), TLS alert, unknown CA (560):
* SSL certificate problem: self signed certificate
* Closing connection 0
curl: (60) SSL certificate problem: self signed certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
When doing it in my browser, I get a 403 from the cdn. Can you help me out on it?
I'm using java 8 to run it
Atenção: este email contém informação confidencial. Se você o receber por engano, por favor, informe-nos e apague-o; não copie ou divulgue seu conteúdo.
Warning: this email contains confidential information. If you have received it by mistake, please let us know and delete it; do not copy or disclose its contents.
--
You received this message because you are subscribed to the Google Groups "wiremock-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wiremock-use...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/wiremock-user/1139e6e4-e5fb-41b2-925f-049f27070de4n%40googlegroups.com.