Forum: NGINX nginx as the proxy that provides client certificate and faced connection attempt failed talk to upst

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
818d13a512175196d27c24ea1030067c?d=identicon&s=25 Jason/Jiesheng Wei (Guest)
on 2016-07-07 22:09
(Received via mailing list)
Hey,

I'm using nginx for windows as a reverse proxy to upstream server. The
upstream server requires client certificate and thus in the nginx
config, I put the following:

location / {
            proxy_ssl_certificate_key cert.key;
            proxy_ssl_certificate cert.crt;
            proxy_pass https://upstream;
        }

and the key and cert are pem format.

However, when I send request to the nginx proxy, it returns 504
gateway timeout and the error log is

10060: A connection attempt failed because the connected party did not
properly respond after a period of time, or established connection
failed because connected host has failed to respond) while reading
response header from upstream

And I confirmed by curl with the cert files above directly to the
upstream and it worked.

Can someone please help understand what could be wrong here?

Thanks,
Jason
This topic is locked and can not be replied to.