Open Bug 1396221 Opened 7 years ago Updated 5 months ago

Allow insecure localhost certificates for headless testing

Categories

(Firefox :: Headless, defect, P3)

55 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: johan.brandhorst, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3198.0 Safari/537.36

Steps to reproduce:

Start firefox in headless mode and try to navigate to a page on localhost with a self signed certificate.


Actual results:

I get TLS error "unknown certificate authority" (as expected).


Expected results:

I expect there to be an option (like on Chrome Headless as well as Selenium Firefox) to either accept all insecure certificates, or simply accept insecure certificates for localhost specifically. See https://bugs.chromium.org/p/chromium/issues/detail?id=721739 for equivalent Chrome bug. Chrome team added a new flag, but also seem to intend to support "acceptInsecureCerts" as a browser capability.
Component: Untriaged → Headless
Priority: -- → P3
I too would like this feature.  Not just in headless mode though, also as a setting for normal use.  My app runs on localhost, but I re-generate the self-signed localhost certificate periodically, and adding an exception every time is a pain.  Chromium has a flag for this:

https://stackoverflow.com/a/31900210
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.