Giter Site home page Giter Site logo

etopian / twisted-xmlrpc-ssl Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 138 KB

A twisted-based XMLRPC and SSL server. Developed by Calgary-based web design and web development experts, Etopian Inc.

Home Page: http://etopian.com

License: GNU General Public License v3.0

Python 100.00%

twisted-xmlrpc-ssl's Introduction

This project has not been updated and does not work, use this instead:

https://github.com/etopian/python3-xmlrpc-ssl-basic-auth

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

twisted-xmlrpc-ssl's People

Contributors

etopian avatar

Stargazers

Angus H. avatar Suriyaa Sundararuban avatar Daniel Kershaw avatar  avatar Jathan McCollum avatar

Watchers

 avatar James Cloos avatar

twisted-xmlrpc-ssl's Issues

Use Twisted Web instead of Twisted Web2

Development of Twisted Web2 is abandoned. Twisted Web2 is no longer present in the upstream version control system. No efforts are being made by the Twisted team to keep past releases of Twisted Web2 working with new releases of Twisted. If the Twisted Web2 code in this project is working now, that's just a lucky accident. As time goes on, it will be increasingly likely that something will fail entirely and leave this project unworking.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.