"net"
"net/url"
"strconv"
+ "strings"
cmapi "github.com/jetstack/cert-manager/pkg/apis/certmanager/v1"
}
func extractStringArray(strArray []string) string {
- values := ""
- for _, val := range strArray {
- values = values + val + ", "
- }
- return values
+ separator := ","
+ return strings.Join(strArray, separator)
}
func mapUrisToText(uris []*url.URL) []string {
- LOCATION *(optional)* - Location for which certificate from CMPv2 server should be issued
- STATE *(required)* - State for which certificate from CMPv2 server should be issued
- COUNTRY *(required)* - Country for which certificate from CMPv2 server should be issued
- - SANS *(optional)(SANS's should be separated by a comma e.g. test.onap.org,onap.com)* - Subject Alternative Names (SANs) for which certificate from CMPv2 server should be issued. All SANs types are supported (DNS names, IPs, URIs, emails).
+ - SANS *(optional)(SANS's should be separated by a comma e.g. test.onap.org,onap.com)* - Subject Alternative Names (SANs) for which certificate from CMPv2 server should be issued. The following SANs types are supported: DNS names, IPs, URIs, emails.
3. Parameters to establish secure communication to CertService: