code: def getContextFactory(path):
      
      with path.child("client.pem").open() as pemFile:
          cert = PrivateCertificate.loadPEM(pemFile.read())
  
      certOptions = cert.options() # TODO: verify server cert (see #1)
      certOptions.method = SSL.SSLv23_METHOD
      ctxFactory = SecureCiphersContextFactory(certOptions)
      return ctxFactory
docs: Get a context factory for the client from keys already stored at
      path.
  
      Raises IOError if the credentials didn't exist.