Selenium doesn't use FF profile with trusted SSL certificate

感情迁移 提交于 2020-01-25 11:34:07

问题


I created Selenium profile in FF, accepted SSL certificate in it. When I launch Selenium tests, it creates customProfileDir in /tmp folder and tries to use CyberVillainCA cert instead of one I need. I can accept this certificate once per test and should re-accept it every time I launch my tests.

I use the following arg line:

-firefoxProfileTemplate ${PATH_TO_FIREFOX_PROFILE} -trustAllSSLCertificates

But it seems to me, that it doesn't work.

How it can be fixed?

Addition info:

OS: Linux

Firefox: 12.0

Selenium IDE: 1.8.0

Selenium server: 2.21.0


回答1:


If you accepted the certificate in a profile and is using that profile to run the test -trustAllSSLCertificates parameter is not required.

Try removing -trustAllSSLCertificates and see if it works.

I have seen that when you give -trustAllSSLCertificates and the firefox profile template it doesn't work. But if you remove the files cert8.db and cert_override.txt (which gets created when you accept the SSL certificate) from your profile folder -trustAllSSLCertificates works fine.



来源:https://stackoverflow.com/questions/10430162/selenium-doesnt-use-ff-profile-with-trusted-ssl-certificate

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!