问题原文
原帖链接 · 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
