Skip to content

Instantly share code, notes, and snippets.

@qguv
Created February 14, 2020 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qguv/3f4466d3471db0b5def7f47bb824bce5 to your computer and use it in GitHub Desktop.
Save qguv/3f4466d3471db0b5def7f47bb824bce5 to your computer and use it in GitHub Desktop.
[Prosody] core/certmanager.lua: accept letsencrypt directories even if its name doesn't match the domain
diff --git a/core/certmanager.lua b/core/certmanager.lua
index 5282a6f507b4..6d58a9a61eb7 100644
--- a/core/certmanager.lua
+++ b/core/certmanager.lua
@@ -62,8 +62,8 @@ local global_ssl_config = configmanager.get("*", "ssl");
local global_certificates = configmanager.get("*", "certificates") or "certs";
-local crt_try = { "", "/%s.crt", "/%s/fullchain.pem", "/%s.pem", };
-local key_try = { "", "/%s.key", "/%s/privkey.pem", "/%s.pem", };
+local crt_try = { "", "/%s.crt", "/%s/fullchain.pem", "/%s.pem", "/fullchain.pem", };
+local key_try = { "", "/%s.key", "/%s/privkey.pem", "/%s.pem", "/privkey.pem", };
local function find_cert(user_certs, name)
local certs = resolve_path(config_path, user_certs or global_certificates);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment