Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A twisted-based XMLRPC and SSL server. Developed by Calgary-based web design and web development experts, Etopian Inc.
Python
Branch: master
Failed to load latest commit information.
LICENSE Adding the app
LICENSE_COMMERCIAL fixing up readme
README fixing up readme
README.md Adding the app
cacert.pem Adding the app
client.py Adding the app
httpspass.conf Adding the app
make_password.py Adding the app
privkey.pem Adding the app
protocol.py Adding the app
xmlrpc.conf Adding the app
xmlrpc_app.py Adding the app
xmlrpcserver.py Adding the app

README.md

What I needed to do to get this to work

  • Install Twisted
  • Install Zope Interfaces
  • Install pyOpenSSL
  • Install web2 from Twisted: (either from svn or for the Web2 package) svn co svn://svn.twistedmatrix.com/svn/Twisted/trunk Twisted
  • Move web2 into twisted
  • Make salted hash password (salt is the last 2 characters of the password) from crypt import crypt password = 'mypass' crypt(password, password[-2:]) #(use the last two characters as the salt)
  • Add username/password to httpspass.conf
  • Create a Twisted Client from twisted.web.xmlrpc import Proxy from twisted.internet import reactor

    def printValue(value): print repr(value) reactor.stop()

    def printError(error): print 'error', error reactor.stop()

    proxy = Proxy('https://%s:%s@localhost:9870' % ('myfancyusername', 'ohmygod')) proxy.callRemote('echo', 'hello, im echoing this').addCallbacks(printValue, printError) reactor.run()

  • Start the server: twistd -y xmlrpc_app.py
  • Test the client: python client.py
Something went wrong with that request. Please try again.