func (rm *Manager) GetCAExpirationInfo(name string) (*ExpirationInfo, error) {
	handler, ok := rm.cas[name]
	if !ok {
		return nil, errors.Errorf("%s is not a known CA", name)
	}

	// checks if the CA is externally managed (CA certificate provided without the certificate key)
	externallyManaged, err := rm.IsExternallyManaged(handler.FileName)
	if err != nil {
		return nil, err
	}

	// reads the current CA
	ca, err := handler.readwriter.Read()
	if err != nil {
		return nil, err
	}

	// returns the CA expiration info
	return newExpirationInfo(name, ca, externallyManaged), nil
}
// GetCAExpirationInfo returns CA expiration info.
GetCAExpirationInfo returns CA expiration info.
// GetCAExpirationInfo returns CA expiration info .
func (rm *Manager) GetCAExpirationInfo(name string) (*ExpirationInfo, error) {
	handler, ok := rm.cas[name]
	if !ok {
		return nil, errors.Errorf("%s is not a known CA", name)
	}
	externallyManaged, err := rm.IsExternallyManaged(handler.FileName)
	if err != nil {
		return nil, err
	}
	ca, err := handler.readwriter.Read()
	if err != nil {
		return nil, err
	}
	return newExpirationInfo(name, ca, externallyManaged), nil
}
func ( rm * Manager ) GetCAExpirationInfo ( name string ) ( * ExpirationInfo , error ) { handler , ok := rm . cas [ name ] if ! ok { return nil , errors . Errorf ( " " , name ) } externallyManaged , err := rm . IsExternallyManaged ( handler . FileName ) if err != nil { return nil , err } ca , err := handler . readwriter . Read ( ) if err != nil { return nil , err } return newExpirationInfo ( name , ca , externallyManaged ) , nil }
GetCAExpirationInfo returns CA expiration info.
GetCAExpirationInfo returns CA expiration info .
// checks if the CA is externally managed (CA certificate provided without the certificate key) // reads the current CA // returns the CA expiration info