code: func (s *Server) createCAProvider(conf *structs.CAConfiguration) (ca.Provider, error) {
  	switch conf.Provider {
  	case structs.ConsulCAProvider:
  		return &ca.ConsulProvider{Delegate: &consulCADelegate{s}}, nil
  	case structs.VaultCAProvider:
  		return &ca.VaultProvider{}, nil
  	default:
  		return nil, fmt.Errorf("unknown CA provider %q", conf.Provider)
  	}
  }
docs: // createProvider returns a connect CA provider from the given config.