// New creates and initializes the CA with the given configuration and options.
New creates and initializes the CA with the given configuration and options.
// New creates and initializes the CA with the given configuration and options .
func New(config *authority.Config, opts ...Option) (*CA, error) {
	ca := &CA{
		config: config,
		opts:   new(options),
	}
	ca.opts.apply(opts)
	return ca.Init(config)
}
func New ( config * authority . Config , opts ... Option ) ( * CA , error ) { ca := & CA { config : config , opts : new ( options ) , } ca . opts . apply ( opts ) return ca . Init ( config ) }
New creates and initializes the CA with the given configuration and options.
New creates and initializes the CA with the given configuration and options .