19

when I'm trying to make ajax request with jquery to:

https://localhost:8443/uri

I get this error:

net::ERR_INSECURE_RESPONSE

I'm using self signed certificate, in package.json I have these parameters:

"chromium-args": "--ignore-certificate-errors --auth-schemes='basic --auth-server-whitelist='*localhost:8443' --auth-negotiate-delegate-whitelist='*localhost:8443'''",

does anybody know how I can add self signed certificates to node-webkit's truststore !?

OS: ubuntu 14.10

Khalid
  • 4,730
  • 5
  • 27
  • 50
Rodislav Moldovan
  • 1,175
  • 1
  • 13
  • 20

1 Answers1

10

The problem here is that the browser is blocking the call to that server because that server has an invalid certificate. Since it is a localhost server, it is a self-signed certificate. The best way to get around this is to try one of the following...

Eric
  • 6,563
  • 5
  • 42
  • 66
  • 1
    Manually accessing the page and accepting the invalid certificate helped me eliminate the error message, although it doesn't fix my problem since this won't be an option for those using my client. This isn't a thing which needs security, but because it's being called from a secure page, it will only work if also secure. And this is only a toy - a pricey official certificate is out of the question... Help!? – Greg Young Jun 25 '16 at 01:27
  • cant create certificate for localhost -https://letsencrypt.org/docs/certificates-for-localhost/ – King_Fisher Sep 10 '19 at 13:03
  • 1
    The second point saved my time :) appreciated – WK5 Mar 20 '22 at 11:30