Proxy to upstream HTTPS server *with different* keys/certs in nginx

Maxim Dounin mdounin at mdounin.ru
Sun Feb 9 21:12:37 UTC 2014


Hello!

On Sat, Feb 08, 2014 at 07:39:12PM -0500, tbamise wrote:

> Is it possible to use a different set of certs for the client side and
> another set for the upstream server side?
> 
> My use case is to have different sets of local ssl certs on Nginx. A
> key/cert pair for communicating with clients and another set for
> communicating with the upstream proxy.
> 
> Right now I can define a server module with ssl and specify the ssl
> certificates and specify a https protocol for proxy_pass for a location. But
> both client and upstream connections end up using the same certificates
> specified with $ssl_certificate. How can I specify different certificates
> for the client side connection and upstream side connection?

Connections to upstream servers don't use any client certificates.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list