Open shsatovg opened 2 years ago
Validated with @axe-core/cli": "^4.4.4-alpha.299
,
I didn't see any such certificate issue when I ran axe www.deque.com --browser firefox --show errors
,
Install our canary version using the command npm install @axe-core/cli@next
, Please let us know if you are still seeing
Thank you for your confirmation and comments. I have installed the canary version (4.4.4-alpha.299+598ab44). However, the same error was output.
Unlike Chrome and Edge, Firefox references its own configuration file for certificates. The current cli does not seem to have a mechanism to reference that configuration file. https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data
Product: cli
Expectation: In the environment that requires a certificate under the proxy, cli can work with Firefox.
Actual: In the environment that requires a certificate under the proxy, cli get an error "Error: InsecureCertificateError" with Firefox.
detail If I run @axe-core/cli with
--browser firefox
,--show-errors
in an environment that requires a certificate under a proxy, I get the following error. (No error is output when using Chrome and Edge.)Motivation: Because I need to evaluate web pages by @axe-core/cli using Firefox in an environment that requires certificates under proxy.
Assumption of cause : Unlike Chrome and Edge, Firefox references its own configuration file for certificates. The current cli does not seem to have a mechanism to reference that configuration file. https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data
How to fix : This error was resolved by changing the code in
@axe-core/cli
to use the Firefox profile (cert9.db
). We tried the following in the environment at hand and confirmed that it works properly.cert9.db
) in an arbitrary folder (e.g.C:/work/profile
).https://github.com/dequelabs/axe-core-npm/blob/develop/packages/cli/src/lib/webdriver.ts
・L3:
・L27:
https://www.selenium.dev/documentation/webdriver/capabilities/firefox/