code: func (ch *CredHub) GenerateCertificate(name string, gen generate.Certificate, overwrite Mode) (credentials.Certificate, error) {
  	var cred credentials.Certificate
  	err := ch.generateCredential(name, "certificate", gen, overwrite, &cred)
  	return cred, err
  }
docs: // GenerateCertificate generates a certificate credential based on the provided parameters.