'Set or change the server certificate file used to wrap new connections.
@param certfile: The filename of the server certificate,
i.e. \'/etc/certs/server.pem\'
@type certfile: str
Raises an IOError exception if the certfile is not present or unreadable.'

def setCertfile(self, certfile):

    if (not os.access(certfile, os.R_OK)):
        raise IOError(('No    such    certfile    found:    %s' % certfile))
    self.certfile = certfile
