class Localhost::Authority

def self.list(root = self.path)

List all certificate authorities in the given directory:
def self.list(root = self.path)
	return to_enum(:list) unless block_given?
	
	Dir.glob("*.crt", base: root) do |path|
		name = File.basename(path, ".crt")
		
		authority = self.new(name, root: root)
		
		if authority.load
			yield authority
		end
	end
end