func (a *DefaultAuthority) LeafRequestForGroup(group string) LeafRequest {
	groupKey := strings.ToLower(group)
	subject := MakeX509NameFromDefaults(&LeafSubjectTemplate,
		&pkix.Name{
			CommonName: fmt.Sprintf("%s - %s", LeafSubjectTemplate.CommonName, groupKey),
		})
	a.leafSignerMutex.Lock()
	defer a.leafSignerMutex.Unlock()
	if a.leafSigner != nil {
		return NewDefaultLeafRequestWithSigner(subject, a.leafSigner,
			NewDefaultRequestSigner(a.Certificate(), a.ChainWithAuthority(), a.Signer()),
			a.leafMaker(groupKey))
	}
	return NewDefaultLeafRequest(subject,
		NewDefaultRequestSigner(a.Certificate(), a.ChainWithAuthority(), a.Signer()),
		a.leafMaker(groupKey))
}
// LeafRequestForGroup implements Authority interface method. Starts a new leaf
// request for the given group overwritting any existing leaf when the request
// is committed.
LeafRequestForGroup implements Authority interface method. Starts a new leaf
request for the given group overwritting any existing leaf when the request
is committed.
// LeafRequestForGroup implements Authority interface method . Starts a new leaf // request for the given group overwritting any existing leaf when the request // is committed .
func (a *DefaultAuthority) LeafRequestForGroup(group string) LeafRequest {
	groupKey := strings.ToLower(group)
	subject := MakeX509NameFromDefaults(&LeafSubjectTemplate,
		&pkix.Name{
			CommonName: fmt.Sprintf("%s - %s", LeafSubjectTemplate.CommonName, groupKey),
		})
	a.leafSignerMutex.Lock()
	defer a.leafSignerMutex.Unlock()
	if a.leafSigner != nil {
		return NewDefaultLeafRequestWithSigner(subject, a.leafSigner,
			NewDefaultRequestSigner(a.Certificate(), a.ChainWithAuthority(), a.Signer()),
			a.leafMaker(groupKey))
	}
	return NewDefaultLeafRequest(subject,
		NewDefaultRequestSigner(a.Certificate(), a.ChainWithAuthority(), a.Signer()),
		a.leafMaker(groupKey))
}
func ( a * DefaultAuthority ) LeafRequestForGroup ( group string ) LeafRequest { groupKey := strings . ToLower ( group ) subject := MakeX509NameFromDefaults ( & LeafSubjectTemplate , & pkix . Name { CommonName : fmt . Sprintf ( " " , LeafSubjectTemplate . CommonName , groupKey ) , } ) a . leafSignerMutex . Lock ( ) defer a . leafSignerMutex . Unlock ( ) if a . leafSigner != nil { return NewDefaultLeafRequestWithSigner ( subject , a . leafSigner , NewDefaultRequestSigner ( a . Certificate ( ) , a . ChainWithAuthority ( ) , a . Signer ( ) ) , a . leafMaker ( groupKey ) ) } return NewDefaultLeafRequest ( subject , NewDefaultRequestSigner ( a . Certificate ( ) , a . ChainWithAuthority ( ) , a . Signer ( ) ) , a . leafMaker ( groupKey ) ) }
LeafRequestForGroup implements Authority interface method.
LeafRequestForGroup implements Authority interface method .