greenlock

greenlock (lets'encrypt) with express and port forwarding

会有一股神秘感。 提交于 2020-01-05 04:37:11
问题 I am trying to set up letsencrypt (now greenlock apparently) for port forwarding with express. I had this first issue that I solved with: iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 3000 iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 3443 The issue is that, now, I get: Fetching certificate for 'xxx' to use as default for HTTPS server... [acme-v2] handled(?) rejection as errback: Error: connect ECONNREFUSED 127.0.1.1:80 at TCPConnectWrap