':param FilePath directory: Directory where the certificates can be
found.'

def __init__(self, directory):

    self.directory = directory
    self.cluster = CertAndKey(directory.child('cluster.crt'), directory.child('cluster.key'))
    self.control = CertAndKey(directory.globChildren('control-*.crt')[0], directory.globChildren('control-*.key')[0])
    self.user = CertAndKey(directory.child('user.crt'), directory.child('user.key'))
    nodes = []
    for child in directory.globChildren('node-*.crt'):
        sibling = FilePath((child.path[:(-3)] + 'key'))
        nodes.append(CertAndKey(child, sibling))
    self.nodes = nodes
