I need to test an application. It is a microservice which uses other APIs. To test it in isolation I want to use mock servers. The problem is that I can't configure the application under test to send requests to http mock server. It sends request using https protocol and port 443 only.However, there is no https-app running on that port. But it is possible to specify a proxy server. I tried to configure apache to run as an https proxy server. This server uses a self-signed certificate for localhost domain. But redirection does not works for https requests. However, http requests get redirected succesfully if I run proxy server in http mode. Here is the configiration for the proxy server:
<VirtualHost localhost:8098>
ProxyRequests Off
SSLEngine On
ProxyPass / http://localhost:3001
ProxyPassReverse / http://localhost:3001
SSLCertificateFile localhost.crt
SSLCertificateKeyFile localhost.key
</VirtualHost>```
Santiago Trujillo