'Check if files already exist in current directory. If they do,
error out. Otherwise calling APIs on CertificateAuthority,
create new private/public key pair, self-sign, write out to
files locally.'

def run(self):

    try:
        try:
            RootCredential.initialize(self['path'], self['name'])
            self._sys_module.stdout.write('Created    cluster.key    and    cluster.crt.    Please    keep    cluster.key    secret,    as    anyone    who    can    access    it    will    be    able    to    control    your    cluster.\n')
        except (KeyAlreadyExistsError, CertificateAlreadyExistsError, PathError) as e:
            raise UsageError(str(e))
    except UsageError as e:
        raise SystemExit(u'Error:    {error}'.format(error=str(e)))
    return succeed(None)
