MixewayOpenVASRestAPI
MixewayOpenVASRestAPI copied to clipboard
SSL Authentication upstream trough nginx reverse proxy
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.