'Get certificate by id.'

def __getitem__(self, id):

    try:
        return self._certs[bytes_to_str(id)]
    except KeyError:
        raise SecurityError(u'Unknown    certificate:    {0!r}'.format(id))
