// CreateCertificateRequest creates a new CSR with the given common name and
// SANs. If no san is provided the commonName will set also a SAN.
CreateCertificateRequest creates a new CSR with the given common name and
SANs. If no san is provided the commonName will set also a SAN.
// CreateCertificateRequest creates a new CSR with the given common name and // SANs . If no san is provided the commonName will set also a SAN .
func CreateCertificateRequest(commonName string, sans ...string) (*api.CertificateRequest, crypto.PrivateKey, error) {
	key, err := keyutil.GenerateDefaultKey()
	if err != nil {
		return nil, nil, err
	}
	return createCertificateRequest(commonName, sans, key)
}
func CreateCertificateRequest ( commonName string , sans ... string ) ( * api . CertificateRequest , crypto . PrivateKey , error ) { key , err := keyutil . GenerateDefaultKey ( ) if err != nil { return nil , nil , err } return createCertificateRequest ( commonName , sans , key ) }
CreateCertificateRequest creates a new CSR with the given common name and
SANs.
CreateCertificateRequest creates a new CSR with the given common name and SANs .