code: def getServerSSLContext(self, hostname=None):
          '''
          Returns an ssl.SSLContext appropriate to listen on a socket
  
          Args:
              hostname:  if None, the value from socket.gethostname is used to find the key in the servers directory.
              This name should match the not-suffixed part of two files ending in .key and .crt in the hosts subdirectory
  
          '''
          sslctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
          if hostname is None:
              hostname = socket.gethostname()
          certfile = self.getHostCertPath(hostname)
          if certfile is None:
              raise s_exc.NoCertKey('Missing .crt for %s' % hostname)
          keyfile = self.getHostKeyPath(hostname)
          if keyfile is None:
              raise s_exc.NoCertKey('Missing .key for %s' % hostname)
  
          sslctx.load_cert_chain(certfile, keyfile)
  
          return sslctf getServerSSLContext(self, hostname=None):
          '''
          Returns an ssl.SSLContext appropriate to listen on a socket
  
          Args:
              hostname:  if None, the value from socket.gethostname is used to find the key in the servers directory.
              This name should match the not-suffixed part of two files ending in .key and .crt in the hosts subdirectory
  
          '''
          sslctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
          if hostname is None:
              hostname = socket.gethostname()
          certfile = self.getHostCertPath(hostname)
          if certfile is None:
              raise s_exc.NoCertKey('Missing .crt for %s' % hostname)
          keyfile = self.getHostKeyPath(hostname)
          if keyfile is None:
              raise s_exc.NoCertKey('Missing .key for %s' % hostname)
  
          sslctx.load_cert_chain(certfile, keyfile)
  
          return sslctx
docs: Returns an ssl.SSLContext appropriate to listen on a socket
  
          Args:
              hostname:  if None, the value from socket.gethostname is used to find the key in the servers directory.
              This name should match the not-suffixed part of two files ending in .key and .crt in the hosts subdirectory