2

I was asking myself if Selenium has any possibilities to secure the communication in Selenium Grid for example. As far as I know Selenium communicates via JSON and Selenese commands. But it is not encrypted. Are there any possibilities to encrypt the communication?

Thanks a lot.

nilesh
  • 14,131
  • 7
  • 65
  • 79
tester
  • 3,977
  • 5
  • 39
  • 59

2 Answers2

3

Quick hack: make an ssh tunnel.

Forward remote server's port 4444 as a local port using following ssh command:

ssh user@remotesrv -L 4444:127.0.0.1:4444

Now when you connect to your local port 4444, it actually connects to your server's port 4444 on a secure link. Refer to this link for tutorial.

Afterwards, just open the remote web driver as you normally do.

This will now be on a secure link.

sharjeel
  • 5,825
  • 7
  • 34
  • 49
1

You would have to run your own SSL proxy in front of the hub and the nodes. It is presumed that you aren't publicly exposing your grid.

nirvdrum
  • 2,319
  • 17
  • 26