electron: [Bug]: Unexpected CertVerifyProcBuiltin stderr with self-signed certs after upgrading

Preflight Checklist

Electron Version

18.3.0. Issue appeared starting with 17.0.0-alpha.4 and exists in latest (19.0.4)

What operating system are you using?

Ubuntu

Operating System Version

I am on Ubuntu, but users have reported this with other OS’s.

What arch are you using?

x64

Last Known Working Electron version

17.0.0-alpha.3

Expected Behavior

We are passing --ignore-certificate-errors to Electron in Cypress to suppress cert errors for our self-signed HTTPS proxy. This worked fine, and still works fine in new versions of Electron. But after upgrading our Electron version to 18.3.0, users began getting confusing errors in the stderr.

GH Discussion thread: https://github.com/cypress-io/cypress/discussions/22128

Sample of unexpected stderr:

[3801:0606/152837.383892:ERROR:cert_verify_proc_builtin.cc(681)] CertVerifyProcBuiltin for www.googletagmanager.com failed: ----- Certificate i=0 (OU=Cypress Proxy Server Certificate,O=Cypress Proxy CA,L=Internet,ST=Internet,C=Internet,CN=www.googletagmanager.com) ----- ERROR: No matching issuer found [3801:0606/152837.390166:ERROR:cert_verify_proc_builtin.cc(681)] CertVerifyProcBuiltin for cdn.segment.io failed: ----- Certificate i=0 (OU=Cypress Proxy Server Certificate,O=Cypress Proxy CA,L=Internet,ST=Internet,C=Internet,CN=cdn.segment.io) ----- ERROR: No matching issuer found [3801:0606/152837.847154:ERROR:cert_verify_proc_builtin.cc(681)] CertVerifyProcBuiltin for www.google-analytics.com failed: ----- Certificate i=0 (OU=Cypress Proxy Server Certificate,O=Cypress Proxy CA,L=Internet,ST=Internet,C=Internet,CN=www.google-analytics.com) ----- ERROR: No matching issuer found [3801:0606/152838.158565:ERROR:cert_verify_proc_builtin.cc(681)] CertVerifyProcBuiltin for rum.browser-intake-datadoghq.com failed: ----- Certificate i=0 (OU=Cypress Proxy Server Certificate,O=Cypress Proxy CA,L=Internet,ST=Internet,C=Internet,CN=rum.browser-intake-datadoghq.com) ----- ERROR: No matching issuer found

I isolated the issue to a change between 17.0.0-alpha.3 and 17.0.0-alpha.4. Based on the 17.0.0-alpha.4 changelog it seems that this Chromium bump is the most likely culprit.

I thought this could be related since it touches this exact area, but it doesn’t appear to be in the changelog: https://github.com/electron/electron/pull/33204

Actual Behavior

I would expect --ignore-certificate-errors to ignore certificate errors fully, so no excess stderr produced because of SSL errors.

Testcase Gist URL

Repro: https://github.com/flotwig/electron-cert-verify-repro

Additional Information

Our current workaround is to filter the stderr and ignore these lines: https://github.com/cypress-io/cypress/pull/22342

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 3
  • Comments: 15 (7 by maintainers)

Most upvoted comments

Electron version 31.2.1 still has this issue

@codebytere looks like this is still impacting users. Can it be reopened?

This is an issue still with electron version 21.3.3 .

bump tested to be happening in 21.0.2 and 21.0.4

I have the same issue Help me give the solution, please 🙇

[3801:0606/152837.383892:ERROR:cert_verify_proc_builtin.cc(681)] CertVerifyProcBuiltin for www.googletagmanager.com failed: ----- Certificate i=0 (OU=Cypress Proxy Server Certificate,O=Cypress Proxy CA,L=Internet,ST=Internet,C=Internet,CN=www.googletagmanager.com) ----- ERROR: No matching issuer found