Created
February 14, 2020 19:46
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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