primate icon indicating copy to clipboard operation
primate copied to clipboard

Could not login with self signed certificate

Open whisper-bye opened this issue 8 years ago • 3 comments

whisper-bye avatar Mar 05 '18 06:03 whisper-bye

This is a problem for me as well. As of now it does not look like it's possible to deploy Kong to Kubernetes using the Helm chart and have admin API over HTTP. Only HTTPS using a self signed certificate.

StianOvrevage avatar Jun 14 '18 21:06 StianOvrevage

Still a problem - any workarounds? With Konga, you can set ENV NODE_TLS_REJECT_UNAUTHORIZED to "0"

      env:
      - name: NODE_TLS_REJECT_UNAUTHORIZED
        value: "0"

F0otsh0T avatar Jun 26 '19 21:06 F0otsh0T

I worked around this problem by adding:

// SSL/TSL: this is the self signed certificate support
app.on('certificate-error', (event, webContents, url, error, certificate, callback) => {
    // On certificate error we disable default behaviour (stop loading the page)
    // and we then say "it is all fine - true" to the callback
    event.preventDefault();
    callback(true);
});

to main.js . I found that on: https://newbedev.com/how-do-i-trust-a-self-signed-certificate-from-an-electron-app

Of course better to get some proper certificates.

BartVB avatar Nov 18 '21 13:11 BartVB