From 08eda9020d15a29111b1f5b42bc752ec8f5d30b5 Mon Sep 17 00:00:00 2001 From: bgpat Date: Sat, 6 May 2017 19:40:58 +0900 Subject: [PATCH 1/2] Fix error handling err's type changed in https://github.com/torhve/lua-resty-letsencrypt/commit/5abb0d2a0fab34ca00e78279a5f4061cbc3646b6 --- letsencrypt.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letsencrypt.lua b/letsencrypt.lua index c968e8e..517abad 100644 --- a/letsencrypt.lua +++ b/letsencrypt.lua @@ -668,7 +668,7 @@ _M.cert_for_host = function(self, host) log("Updating authz...") local updated, err = account.unsigned_request(authz.head.location or authz.url) if not updated then - log("Failed to update authz: %s", tostring(err())) + log("Failed to update authz: %s", tostring(err)) break else hosts[host], authz = updated, updated From 661e2e77d42cb1f65f2f6a7048a0c3889a605577 Mon Sep 17 00:00:00 2001 From: bgpat Date: Thu, 15 Jun 2017 00:39:54 +0900 Subject: [PATCH 2/2] Ignore domain list --- letsencrypt.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/letsencrypt.lua b/letsencrypt.lua index 517abad..4ba6f2b 100644 --- a/letsencrypt.lua +++ b/letsencrypt.lua @@ -878,10 +878,10 @@ _M.ssl = function(self) local ssl_hostname = ssl.server_name() or '' -- Check if ssl_hostname is in list of allowed domains - if not tableHasValue(self.conf.domains, ssl_hostname) then - log('Request for non-configured domain: %s. Returning fallback cert.', ssl_hostname) - return - end + -- if not tableHasValue(self.conf.domains, ssl_hostname) then + -- log('Request for non-configured domain: %s. Returning fallback cert.', ssl_hostname) + -- return + -- end local ok, err, _