{"action":"closed","issue":{"url":"https://api.github.com/repos/mail-in-a-box/mailinabox/issues/1087","repository_url":"https://api.github.com/repos/mail-in-a-box/mailinabox","labels_url":"https://api.github.com/repos/mail-in-a-box/mailinabox/issues/1087/labels{/name}","comments_url":"https://api.github.com/repos/mail-in-a-box/mailinabox/issues/1087/comments","events_url":"https://api.github.com/repos/mail-in-a-box/mailinabox/issues/1087/events","html_url":"https://github.com/mail-in-a-box/mailinabox/issues/1087","id":204565540,"number":1087,"title":"can't get a certificate from letsencrypt","user":{"login":"jazzl0ver","id":2444175,"avatar_url":"https://avatars2.githubusercontent.com/u/2444175?v=4","gravatar_id":"","url":"https://api.github.com/users/jazzl0ver","html_url":"https://github.com/jazzl0ver","followers_url":"https://api.github.com/users/jazzl0ver/followers","following_url":"https://api.github.com/users/jazzl0ver/following{/other_user}","gists_url":"https://api.github.com/users/jazzl0ver/gists{/gist_id}","starred_url":"https://api.github.com/users/jazzl0ver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jazzl0ver/subscriptions","organizations_url":"https://api.github.com/users/jazzl0ver/orgs","repos_url":"https://api.github.com/users/jazzl0ver/repos","events_url":"https://api.github.com/users/jazzl0ver/events{/privacy}","received_events_url":"https://api.github.com/users/jazzl0ver/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-02-01T12:00:03Z","updated_at":"2017-08-03T12:25:21Z","closed_at":"2017-08-03T12:25:21Z","body":"Hello. I've set up Mail-In-A-Box behind NAT. It uses internal DNS servers which resolve itself to an internal IP address, while ssl_certificates.py compares the IP address to the public IP before requesting a certificate:\r\n```\r\n                import dns.resolver\r\n                for rtype, value in [(\"A\", env[\"PUBLIC_IP\"]), (\"AAAA\", env.get(\"PUBLIC_IPV6\"))]:\r\n                        if not value: continue # IPv6 is not configured\r\n```\r\nPlease fix it.\r\n\r\nAt the meantime I had to replace PUBLIC_IP to PRIVATE_IP to get the certificate."}}
{"actor":{"display_login":"JoshData"}}