Selenium 2中的安全性? [英] Security in Selenium 2?

查看:170
本文介绍了Selenium 2中的安全性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在问自己,例如Selenium是否有可能确保Selenium Grid中的通信安全.据我所知,Selenium通过JSON和Selenese命令进行通信.但是它没有被加密.有可能对通信进行加密吗?

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?

非常感谢.

推荐答案

快速攻克:建立ssh隧道.

Quick hack: make an ssh tunnel.

使用以下ssh命令将远程服务器的端口4444转发为本地端口:

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

ssh user @ remotesrv -L 4444:127.0.0.1:4444

ssh user@remotesrv -L 4444:127.0.0.1:4444

现在,当您连接到本地端口4444时,它实际上已通过安全链接连接到服务器的端口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.

然后,像往常一样打开远程Web驱动程序.

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

现在将在安全链接上.

这篇关于Selenium 2中的安全性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆