zaproxy: opening preconfigured firefox via zap doesn't have the correct CA installed
Describe the bug:
The preconfigured browser doesn’t have the ZAP CA pre-configured meaning https websites cannot be accessed until the certificate is manually added
Steps to reproduce the behavior:
- Open Zap 2.16.0 on a macos machine (15.3.2 (24D81)) with chip Apple M3 Max
- Click "No I do not want to persist this session at this moment in time
- Click start
- Click button to open pre-configured firefox
- Open an https website in the firefox
- See “Secure Connection Failed” Error code: “SEC_ERROR_BAD_SIGNATURE”
Expected behavior:
I expect the “pre configured browser” to already have the ZAP CA loaded in, so I can start making HTTPS traffic immediately.
Software versions:
ZAP Version: 2.16.0
Installed Add-ons: [[id=alertFilters, version=23.0.0], [id=ascanrules, version=71.0.0], [id=authhelper, version=0.23.0], [id=automation, version=0.48.0], [id=bruteforce, version=17.0.0], [id=callhome, version=0.14.0], [id=client, version=0.14.0], [id=commonlib, version=1.30.0], [id=database, version=0.8.0], [id=diff, version=17.0.0], [id=directorylistv1, version=9.0.0], [id=domxss, version=21.0.0], [id=encoder, version=1.6.0], [id=exim, version=0.13.0], [id=formhandler, version=6.7.0], [id=fuzz, version=13.15.0], [id=gettingStarted, version=19.0.0], [id=graaljs, version=0.9.0], [id=graphql, version=0.26.0], [id=help, version=19.0.0], [id=hud, version=0.19.0], [id=invoke, version=16.0.0], [id=network, version=0.21.0], [id=oast, version=0.21.0], [id=onlineMenu, version=14.0.0], [id=openapi, version=44.0.0], [id=postman, version=0.6.0], [id=pscan, version=0.2.0], [id=pscanrules, version=63.0.0], [id=quickstart, version=51.0.0], [id=replacer, version=20.0.0], [id=reports, version=0.38.0], [id=requester, version=7.8.0], [id=retest, version=0.11.0], [id=retire, version=0.46.0], [id=reveal, version=9.0.0], [id=scanpolicies, version=0.2.0], [id=scripts, version=45.8.0], [id=selenium, version=15.35.0], [id=sequence, version=8.0.0], [id=soap, version=24.0.0], [id=spider, version=0.13.0], [id=spiderAjax, version=23.22.0], [id=tips, version=14.0.0], [id=wappalyzer, version=21.45.0], [id=webdrivermacos, version=129.0.0], [id=websocket, version=32.0.0], [id=zest, version=48.4.0]]
Operating System: Mac OS X Architecture: aarch64 CPU Cores: 16 Max Memory: 12 GB Java Version: Eclipse Adoptium 17.0.13 System’s Locale: en_GB Display Locale: en_GB Format Locale: en_GB Default Charset: UTF-8 ZAP Home Directory: /Users/richard/Library/Application Support/ZAP/ ZAP Installation Directory: /Applications/ZAP.app/Contents/Java/./ Look and Feel: FlatLaf Light (com.formdev.flatlaf.FlatLightLaf)
Screenshots:
No response
Errors from the zap.log file:
2025-03-21 17:04:57,141 [ZAP-BrowserLauncher] WARN ExtensionQuickStartLaunch - Failed to access the URL http://app.redacted.com, cause: Reached error page: about:neterror?e=nssFailure2&u=https%3A//app.redacted.com/&c=UTF-8&d=%20
Build info: version: '4.29.0', revision: '5fc1ec94cb'
System info: os.name: 'Mac OS X', os.arch: 'aarch64', os.version: '15.3.2', java.version: '17.0.13'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Command: [d0031f6f-27fa-4fbb-b254-6bd0d3d5cc59, get {url=http://app.redacted.com}]
Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 136.0.2, moz:accessibilityChecks: false, moz:buildID: 20250317120031, moz:debuggerAddress: 127.0.0.1:21679, moz:geckodriverVersion: 0.36.0, moz:headless: false, moz:platformVersion: 24.3.0, moz:processID: 4889, moz:profile: /var/folders/qq/26dzkc5d6vz..., moz:shutdownTimeout: 60000, moz:webdriverClick: true, moz:windowless: false, pageLoadStrategy: normal, platformName: mac, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, userAgent: Mozilla/5.0 (Macintosh; Int..., webSocketUrl: ws://127.0.0.1:21679/sessio...}
Session ID: d0031f6f-27fa-4fbb-b254-6bd0d3d5cc59
2025-03-21 17:05:24,859 [ZAP-IO-2-16] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:24,904 [ZAP-IO-2-1] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:24,998 [ZAP-IO-2-3] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,037 [ZAP-IO-2-4] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,063 [ZAP-IO-2-5] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,093 [ZAP-IO-2-6] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,121 [ZAP-IO-2-7] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,144 [ZAP-IO-2-8] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,168 [ZAP-IO-2-9] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,195 [ZAP-IO-2-10] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,217 [ZAP-IO-2-11] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,266 [ZAP-IO-2-12] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,291 [ZAP-IO-2-13] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,317 [ZAP-IO-2-14] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,375 [ZAP-IO-2-15] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,402 [ZAP-IO-2-16] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,424 [ZAP-IO-2-1] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,453 [ZAP-IO-2-2] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,489 [ZAP-IO-2-3] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,515 [ZAP-IO-2-4] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,546 [ZAP-IO-2-5] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,572 [ZAP-IO-2-6] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,599 [ZAP-IO-2-7] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,624 [ZAP-IO-2-8] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,652 [ZAP-IO-2-9] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,678 [ZAP-IO-2-10] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,703 [ZAP-IO-2-11] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
2025-03-21 17:05:25,727 [ZAP-IO-2-12] WARN ServerExceptionHandler - Failed while establishing secure connection, cause: Received fatal alert: bad_certificate
Additional context:
No response
Would you like to help fix this issue?
- Yes
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (7 by maintainers)
Thanks for the update. Given that we haven’t been able to recreate either I’m going to close this issue. If you think of something further or have other details feel free to start a discussion in the User Group.
Do you have any Firefox add-ons installed?
Can you try updating the webdrivers? Looks like you are using 129.0.0 and the latest version is 131.0.0. I’m not too hopefully this will fix the problem though, Firefox tends to be more backwards compatible than Chrome re webdrivers 😕
FYI this works fine for me - I’m using an M2…
I just tried chrome instead, and it worked fine but I’d really prefer to use firefox