class_docstr: SSL implementation of TServerSocket
  
  This uses the ssl module's wrap_socket() method to provide SSL
  negotiated encryption.
docstr: 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.
docstr_tok: ["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","."]
code: def setCertfile(self, certfile):
      """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.
      """
      warnings.warn(
          "setCertfile is deprecated. please use certfile property instead.",
          DeprecationWarning,
          stacklevel=2,
      )
      self.certfile = certfile
  
imports: import logging
  import os
  import socket
  import ssl
  import sys
  import warnings
  from .sslcompat import _match_hostname, _match_has_ipaddress
  from thrift.transport import TSocket
  from thrift.transport.TTransport import TTransportException
label_desc: Use image node_id 2 for calling the TSSLServerSocket obj's underlying member method code with example usage: obj.setCertfile(certfile) without return types