Browser Certificates  


The Firefox driver properly handles untrusted certificates by default.

If you have a trusted certificate, but there is some other certificate error such as a hostname mismatch (eg. using a production certificate in test), you should do the following:

profile =
profile.assume_untrusted_certificate_issuer = false
b = :firefox, profile: profile

The reason this is needed is explained here.


It is easy to ignore invalid Browser certificates in Google Chrome by passing a command line switch: :chrome, switches: ['--ignore-certificate-errors']

Last Updated: February 10, 2016