// newX5CIssuer create a new x5c token issuer. The given configuration should be
// already validate.
newX5CIssuer create a new x5c token issuer. The given configuration should be
already validate.
// newX5CIssuer create a new x5c token issuer . The given configuration should be // already validate .
func newX5CIssuer(caURL *url.URL, cfg *apiv1.CertificateIssuer) (*x5cIssuer, error) {
	_, err := newX5CSigner(cfg.Certificate, cfg.Key, cfg.Password)
	if err != nil {
		return nil, err
	}
	return &x5cIssuer{
		caURL:    caURL,
		issuer:   cfg.Provisioner,
		certFile: cfg.Certificate,
		keyFile:  cfg.Key,
		password: cfg.Password,
	}, nil
}
func newX5CIssuer ( caURL * url . URL , cfg * apiv1 . CertificateIssuer ) ( * x5cIssuer , error ) { _ , err := newX5CSigner ( cfg . Certificate , cfg . Key , cfg . Password ) if err != nil { return nil , err } return & x5cIssuer { caURL : caURL , issuer : cfg . Provisioner , certFile : cfg . Certificate , keyFile : cfg . Key , password : cfg . Password , } , nil }
newX5CIssuer create a new x5c token issuer.
newX5CIssuer create a new x5c token issuer .