Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

self signed certificate error #922

Closed
ipatina opened this issue Nov 18, 2016 · 8 comments
Closed

self signed certificate error #922

ipatina opened this issue Nov 18, 2016 · 8 comments

Comments

@ipatina
Copy link

ipatina commented Nov 18, 2016

  • Version: 8.6.0
  • Target: Windows NSIS

I'm using local https server with self-signed certificate for auto-update tests. I installed my certificate to os, but I'm receiving error 'self signed certificate' when auto-updater requests for update.

@develar
Copy link
Member

develar commented Nov 18, 2016

We don't yet use our own implementation for macOS. You can or file issue to https://github.com/Squirrel/Squirrel.Mac or, and I recommend it, consider to use https://github.com/megahertz/electron-simple-updater (for macOS only). electron-simple-updater will be soon merged into electron-builder.

@ipatina
Copy link
Author

ipatina commented Nov 18, 2016

macOS? No, I'm using Windows.

@develar develar reopened this Nov 18, 2016
@develar
Copy link
Member

develar commented Nov 18, 2016

In this case please specify full error message including stack trace.

@ipatina
Copy link
Author

ipatina commented Nov 18, 2016

"Error: self signed certificate" - this is full error from this code

autoUpdater.on('error', (error) => {
    dialog.showMessageBox({
        message: "error " + error,
        buttons: ['ok'],
        type: 'info'
    });
});

@develar
Copy link
Member

develar commented Nov 18, 2016

@develar develar closed this as completed Nov 19, 2016
@ipatina
Copy link
Author

ipatina commented Nov 23, 2016

Still getting this error. Here's code
screenshot from 2016-11-23 13 19 48

@ipatina
Copy link
Author

ipatina commented Nov 25, 2016

Solved by adding process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; before update.checkUpdate();

@develar
Copy link
Member

develar commented Dec 22, 2016

Please note — since 0.8 electron http API is used. Probably process.env.NODE_TLS_REJECT_UNAUTHORIZED workaround is outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants