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

Use letsencrypt on virtual machine behind a reverse proxy with server name indication

· 52CE 我爱测

I have a server set up with some virtual machines behind a nat. I want to use encryption for my xmpp-server-vm, and therefore need a certificate inside the vm. Is there a possibility to use nginx as a reverse-proxy so i can run l…

问题原文

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

I have a server set up with some virtual machines behind a nat. I want to use encryption for my xmpp-server-vm, and therefore need a certificate inside the vm. Is there a possibility to use nginx as a reverse-proxy so i can run letsencrypt and get/renew the certificates on the vm with the xmpp-server and keep the private key on that machine? I can't use nginx as TLS termination proxy because my vm should not have access to the reverse proxy itself, which would be needed because the xmpp-software needs access to the key.

Edit:

I made a schematic of what i want to do:

My basic problem is, i do not know if letsencrypt works behind a reverse proxy with server name indication enabled, so i can get a certificate inside my xmpp-server-vm to encrypt the xmpp traffic.

已采纳解答

原帖链接 · Coroos · CC BY-SA 4.0

Let's Encrypt allows other forms of challenge/response methods, other than HTTP-01. certbot implements this through additional flags on the command line:

certbot -h manual

DNS-01 requires insertion of the challenge in a TXT record in your DNS records, and requires a DNS server / hosting provider that let's you do this via a script. It's doable, but quite a bit of work.

I successfully use DNS-01 to provide 40+ hotspot systems with multiple certificates. A Command And Control host runs certbot and retrieves all certificates for domains that match a profile at the DNS provider. The hotspot fetches the certificate and key from the Command And Control host through scp.

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

资料来源与适用范围

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

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

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