From 62f32cd01d26e3d1bad0d63a9e418838eb9ea212 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 21 Dec 2022 21:34:07 +0100 Subject: Revert unintentionally committed parts of 12bd40b8e105 --- util/x509.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util') diff --git a/util/x509.lua b/util/x509.lua index ae250a55..51ca3c96 100644 --- a/util/x509.lua +++ b/util/x509.lua @@ -276,7 +276,8 @@ local function get_identities(cert) --> map of names to sets of services return names.data; end -local pat = "%-%-%-%-%-BEGIN ([A-Z ]+)%-%-%-%-%-\r?\n([0-9A-Za-z+/=\r\n]*)\r?\n%-%-%-%-%-END %1%-%-%-%-%-"; +local pat = "%-%-%-%-%-BEGIN ([A-Z ]+)%-%-%-%-%-\r?\n".. +"([0-9A-Za-z+/=\r\n]*)\r?\n%-%-%-%-%-END %1%-%-%-%-%-"; local function pem2der(pem) local typ, data = pem:match(pat); -- cgit v1.2.3