ca/transport.go
Function GetAndValidateCertificateSubject
has 5 return statements (exceeds 4 allowed). Open
Open
func GetAndValidateCertificateSubject(certs []tls.Certificate) (pkix.Name, error) {
for i := range certs {
cert := &certs[i]
x509Cert, err := x509.ParseCertificate(cert.Certificate[0])
if err != nil {