autobahn implementation over SSL

#1

Hi,

We wrote a server using autobahn. We will install it on linux server. If linux server has SSL on it, do we need to do anything extra to run the server or JS/Flash clients?

We need to install our chat server on one of our client’s server. Company don’t want to share the code, so is there a way to install the server and they can start/stop server and without sharing python code (.py files).

0 Likes

#2

Figured it out :).

Here are the answers:

We wrote a server using autobahn. We will install it on linux server. If linux server has SSL on it, do we need to do anything extra to run the server or JS/Flash clients?

So, You can buy a SSL certificate and from clients use wss instead of ws. And I guess no code you required to change. Or you can write a SSL certificate server I guess using twisted.

We need to install our chat server on one of our client’s server. Company don’t want to share the code, so is there a way to install the server and they can start/stop server and without sharing python code (.py files).

Yes, You can use the compiled file, the file with .pyc extension. In most cases, .py compiled into .pyc file, there are two-three cause may not produce .pyc file. Then you can compile it with py_compile package.

import py_compile 
py_compile.compile('abc.py')
and then run as 'python abc.pyc'. and thats it.

Please Correct me if I am wrong on any point or if any one like to add anything to this.

Keep coding and enjoy Autobahn.

Chuck.

···

On Tuesday, February 4, 2014 5:50:46 PM UTC-5, Chuck James wrote:

Hi,

We wrote a server using autobahn. We will install it on linux server. If linux server has SSL on it, do we need to do anything extra to run the server or JS/Flash clients?

We need to install our chat server on one of our client’s server. Company don’t want to share the code, so is there a way to install the server and they can start/stop server and without sharing python code (.py files).

0 Likes

#3

You can also use: python -m compileall

···

On Tuesday, February 4, 2014 5:50:46 PM UTC-5, Chuck James wrote:

Hi,

We wrote a server using autobahn. We will install it on linux server. If linux server has SSL on it, do we need to do anything extra to run the server or JS/Flash clients?

We need to install our chat server on one of our client’s server. Company don’t want to share the code, so is there a way to install the server and they can start/stop server and without sharing python code (.py files).

0 Likes

#4

Hi Chuck,

/We wrote a server using autobahn. We will install it on linux server.
If linux server has SSL on it, do we need to do anything extra to run
the server or JS/Flash clients?/

So, You can buy a SSL certificate and from clients use wss instead of
ws. And I guess no code you required to change. Or you can write a SSL
certificate server I guess using twisted.

Yes, you need to run a TLS based Autobahn server. There is an example in the repo:

https://github.com/tavendo/AutobahnPython/tree/master/examples/twisted/websocket/echo_tls

/We need to install our chat server on one of our client's server.
Company don't want to share the code, so is there a way to install the
server and they can start/stop server and without sharing python code
(.py files)./
Yes, You can use the compiled file, the file with .pyc extension. In
most cases, .py compiled into .pyc file, there are two-three cause may
not produce .pyc file. Then you can compile it with py_compile package.

pyc files can be easily decompiled back into source code.

You might be interested in the following:

http://stackoverflow.com/questions/261638/how-do-i-protect-python-code
http://stackoverflow.com/questions/15581890/how-does-dropbox-protect-its-python-code
https://www.usenix.org/conference/woot13/workshop-program/presentation/kholia

Cheers,
/Tobias

0 Likes

#5

Perfecto… You are the genius dude.

···

On Friday, February 7, 2014 5:00:21 AM UTC-5, Tobias Oberstein wrote:

Hi Chuck,

/We wrote a server using autobahn. We will install it on linux server.

If linux server has SSL on it, do we need to do anything extra to run

the server or JS/Flash clients?/

So, You can buy a SSL certificate and from clients use wss instead of

ws. And I guess no code you required to change. Or you can write a SSL

certificate server I guess using twisted.

Yes, you need to run a TLS based Autobahn server. There is an example in
the repo:

https://github.com/tavendo/AutobahnPython/tree/master/examples/twisted/websocket/echo_tls

/We need to install our chat server on one of our client’s server.

Company don’t want to share the code, so is there a way to install the

server and they can start/stop server and without sharing python code

(.py files)./

Yes, You can use the compiled file, the file with .pyc extension. In

most cases, .py compiled into .pyc file, there are two-three cause may

not produce .pyc file. Then you can compile it with py_compile package.

pyc files can be easily decompiled back into source code.

You might be interested in the following:

http://stackoverflow.com/questions/261638/how-do-i-protect-python-code

http://stackoverflow.com/questions/15581890/how-does-dropbox-protect-its-python-code

https://www.usenix.org/conference/woot13/workshop-program/presentation/kholia

Cheers,

/Tobias

0 Likes