MixewayOpenVASRestAPI icon indicating copy to clipboard operation
MixewayOpenVASRestAPI copied to clipboard

SSL Authentication upstream trough nginx reverse proxy

Open Rhuiedan opened this issue 1 year ago • 0 comments
trafficstars

Hi, We have a server with the rest api setup, that is running a nginx reverse proxy. But with this, we are running into some problems with getting the ssl authentication from curl to reach the api, as nginx terminates the ssl connection and doesn't forward the cert and key.

We have tried a few different setups to solve this, one of them working for a single certificate/key, but this is not a good solution.

Do you have any experience with how to make this work with nginx? One of the challenges seems to be that the curl command sends both the cert and key file. Nginx only seems to support forwarding the cert trough proxy_ssl_trusted_certificate, and this is causing some issues with the rest api authentication.

Rhuiedan avatar Oct 09 '24 09:10 Rhuiedan