From 246b65008ff6c6b20db2f26f0bfcd4ddaabd3301 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 6 Oct 2023 16:46:52 +0700 Subject: all: convert the issuer's label to lowercase in NewIssuer --- issuer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/issuer.go b/issuer.go index 39f7eac..3025be6 100644 --- a/issuer.go +++ b/issuer.go @@ -57,6 +57,9 @@ func NewIssuer(label, rawConfig string, rsaPrivateKey *rsa.PrivateKey) (issuer * if len(vals) < 2 { return nil, fmt.Errorf(`%s: invalid value %q`, logp, rawConfig) } + + label = strings.ToLower(label) + issuer = &Issuer{ Label: label, Hash: vals[0], -- cgit v1.3