Error2 reports
Fix SunCertPathBuilderException
in Electron
✅ Solution
The "SunCertPathBuilderException" in Electron usually arises from issues with SSL certificate verification when accessing external resources, often because the system's root CA certificates are outdated or missing. To resolve this, either update the system's root CA certificates or, as a less secure workaround for development/testing, disable certificate verification specifically for the problematic request using `app.commandLine.appendSwitch('ignore-certificate-errors')` before the `app.on('ready')` event or by setting `process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '0'`.
Related Issues
Real GitHub issues where developers encountered this error:
Timeline
First reported:Nov 6, 2025
Last reported:Nov 6, 2025