3

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.

Chris
  • 1,416
  • 18
  • 29

4 Answers4

3

Use SSH.

See also: What is the simplest way to SSH using Python?

Community
  • 1
  • 1
johnsyweb
  • 136,902
  • 23
  • 188
  • 247
0

Stunnel is pretty handy. I like it since the code doesn't need to deal with encryption at all.

GabiMe
  • 18,105
  • 28
  • 76
  • 113
0

You could use SSL with client/server certificate validation.

Validate SSL certificates with Python

Community
  • 1
  • 1
jfs
  • 399,953
  • 195
  • 994
  • 1,670
0

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.

Versile
  • 308
  • 1
  • 4