问题
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