Reputation: 1426
I'm writing a simple control panel. It's going to be hosted on a single server, which communicates with other servers to do whatever it needs to. I need suggestions on how to do this securely, both from an authentication and an encryption standpoint. The only thing I've come up with so far is to use RSA keys to encrypt data on the master server and decrypt it on the slave, which would accomplish what I need but something seems flawed about it.
Upvotes: 3
Views: 2802
Reputation: 308
We are developing Versile Python, if you need object-level interaction with python objects over a secure channel you may want to have a look. You can use TLS or VTS to negotiate secure connections using RSA keys, or you can connect over SSH.
Other python object interaction frameworks you may want to consider are Pyro and RPyC.
Upvotes: 0
Reputation: 414129
You could use SSL with client/server certificate validation.
Validate SSL certificates with Python
Upvotes: 0
Reputation: 18473
Stunnel is pretty handy. I like it since the code doesn't need to deal with encryption at all.
Upvotes: 0
Reputation: 141780
Use SSH.
See also: What is the simplest way to SSH using Python?
Upvotes: 3