From 763faa7f5632a49d4d40eb2c282c33ad352e23a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9C=9F=E5=A4=9C?= <35420264+mayocream@users.noreply.github.com> Date: Wed, 9 Dec 2020 13:49:43 +0800 Subject: [PATCH 1/2] fix: cfssl provider support SAN URI --- transport/ca/cfssl_provider.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/transport/ca/cfssl_provider.go b/transport/ca/cfssl_provider.go index 85418555a..3774a7f7d 100644 --- a/transport/ca/cfssl_provider.go +++ b/transport/ca/cfssl_provider.go @@ -206,13 +206,17 @@ func (cap *CFSSL) SignCSR(csrPEM []byte) (cert []byte, err error) { return nil, err } - hosts := make([]string, len(csr.DNSNames), len(csr.DNSNames)+len(csr.IPAddresses)) + hosts := make([]string, len(csr.DNSNames), len(csr.DNSNames)+len(csr.IPAddresses)+len(csr.URIs)) copy(hosts, csr.DNSNames) for i := range csr.IPAddresses { hosts = append(hosts, csr.IPAddresses[i].String()) } + for i := range csr.URIs { + hosts = append(hosts, csr.URIs[i].String()) + } + sreq := &signer.SignRequest{ Hosts: hosts, Request: string(csrPEM), From 57d4044c66be4a8c7c22067db781352ed77644c7 Mon Sep 17 00:00:00 2001 From: Han Huang Date: Wed, 9 Dec 2020 17:59:16 +0800 Subject: [PATCH 2/2] trigger