Software /
code /
prosody
Changeset
11591:e7a964572f6b
core.certmanager: Skip service certificate lookup for https client
Quick Fix\u{2122} to stop prevent certmanager from automatically adding
a client certificate for net.http.request, since this normally does not
require such.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 27 May 2021 09:22:07 +0200 |
parents | 11590:5aafb832c91b |
children | 11592:64cfa396bb84 |
files | core/certmanager.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/certmanager.lua Fri May 28 17:09:22 2021 +0200 +++ b/core/certmanager.lua Thu May 27 09:22:07 2021 +0200 @@ -264,7 +264,8 @@ local cfg = new_config(); cfg:apply(core_defaults); local service_name, port = host:match("^(%S+) port (%d+)$"); - if service_name then + -- port 0 is used with client-only things that normally don't need certificates, e.g. https + if service_name and port ~= "0" then log("debug", "Automatically locating certs for service %s on port %s", service_name, port); cfg:apply(find_service_cert(service_name, tonumber(port))); else