I am creating a testcase to test a secure website with Capybara and selenium webdriver.
webapp i want to test is secured https type, so i need to pass my ssl certificate(client side certificates) information to webserver to accept my connection. I know i can pass .pem certificates to https connection when i request through a Rest client.
cert = File.read('pem_file_location')
http.use_ssl = true
http.cert = OpenSSL::X509::Certificate.new(cert)
http.key = OpenSSL::PKey::RSA.new(cert)
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
I am looking for similar approach if i want to make https connection through firefox driver.
I got one solution where i create custom firfox profile and incorporate certificate into that profile and use it when i run tests. But i dont want this solution as profiles are not allowed on CI servers in my company.
Any help would be appreciated