diff --git a/clab/cert.go b/clab/cert.go index 3b226051e..6a66c5de8 100644 --- a/clab/cert.go +++ b/clab/cert.go @@ -23,17 +23,21 @@ type certificates struct { Cert []byte } +// CertInput struct type CertInput struct { Name string LongName string Fqdn string Prefix string } + +// CaRootInput struct type CaRootInput struct { Prefix string Names map[string]string // Not used right now } +// GenerateRootCa function func (c *cLab) GenerateRootCa(csrRootJsonTpl *template.Template, input CaRootInput) (*certificates, error) { log.Info("Creating root CA") //create root CA diretcory