大网数据广告活动
服务器运维问答

NginX "proxy_ssl_certificate" questions, what is it used for?

· 52CE 我爱测

It's not entirely clear from the documentation how to use the proxy_ssl_certificate directives. I have this kind of setup: Server InternalA <---HTTPS---> Server NginxB <----HTTPS----> remote-website-A Server NginxB needs to forwa…

问题原文

原帖链接 · Stellar Sword · CC BY-SA 3.0

It's not entirely clear from the documentation how to use the proxy_ssl_certificate directives.

I have this kind of setup:

Server InternalA <---HTTPS---> Server NginxB <----HTTPS----> remote-website-A

Server NginxB needs to forward GET/POST (generated in InternalA) to the remote-website and return results using SSL.

My NginxB server is running with SSL on + all certs prepared.

However, under the "location {" tag for the proxying to remote-website-A, I need to set further settings for SSL correct? Would they simply match the SSL settings above the "location" tags?

#proxy_ssl_certificate src.crt;
#proxy_ssl_certificate_key srv.key;
#proxy_ssl_ciphers TLSv1.2;
#proxy_ssl_password_file keyfile.pz;
#proxy_ssl_protocols TLSv1.2;
#proxy_ssl_trusted_certificate root.crt;
#proxy_ssl_verify on;

Or are these proxy_ssl directives used for individuals who use my proxy?

The question: Will server NginxB SSL-handshake successfully two-way SSL with remote-website-A without setting the proxy_ssl parameters?

已采纳解答

原帖链接 · Tim · CC BY-SA 3.0

The documentation says "Specifies a file with the certificate in the PEM format used for authentication to a proxied HTTPS server." This suggests if you're not doing client certificate authentication can ignore it.

If you want help with an actual problem you should specify the problem better. It looks like you're looking for architectural or design advice.

You haven't outlined if you have a problem, you've just said what you're trying to achieve. If there's a problem with this kind of think I'd expect to see:

  • a curl demonstrating the problem
  • access and error logs from each application in the stack / chain to give more information
  • configuration
  • what you've done so far to try to solve the problem yourself.

Suggest you start again and completely rewrite your question.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-05-09)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。