Self signed certificate error in sentry-electron SDK

Hello,

I am working with an architecture similar to the one described in this post.

At the current stage of development I am currently sending the Electron application crash data from the sentry-electron SDK to an Nginx server that is currently being tested locally. However when sending data to the Nginx server using a modified DSN string, I am receiving an error because my server uses a self-signed certificate (for testing purposes).

Modified DSN string with public key and project ID removed for privacy:

const { init } = require(’@sentry/electron’);
init({
dsn: ‘https://********************************@localhost/*******’,
});

Error that shows when catching an exception in the Electron app:

raven@2.6.3 alert: failed to send exception to sentry: self signed certificate

Is there any way to work around this error?

1 Like