Working with Electron SDK in a private network: "unable to verify the first certificate"

Hi,
We have a similar case as the one described in: https://forum.sentry.io/t/working-with-the-saas-from-a-private-network/3885
I tried to use the solution as described in the referenced post, and had some problems.
I added the config lines to my nginx config on server listening on port 443, and got this error in my electron app:
“raven@2.6.2 alert: failed to send exception to sentry: unable to verify the first certificate”
which seems relevant to the ssl certificate running on my server.
In the nginx error-log I see the following message:
2018/06/07 10:20:50 [info] 224572#224732: *35 client closed connection while waiting for request, client: <my.client.ip.address>, server: 0.0.0.0:443
my server have a valid ssl certificate, although additionally I would like to be able to configure the sentry package to a different ports with/without ssl.

  1. Is there a way to configure the port for sentry/electron npm package target?
  2. Is there a way to configure sentry/electron npm package to ignore ssl errors?
  3. Is There a way to configure sentry/electron npm package to not use https at all?
    4.Can you please provide a working nginx configuration for such case?
    5.Can you please provide a working sentry configuration for such case?

Thanks!

1 Like