primate
primate copied to clipboard
Could not login with self signed certificate
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.
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"
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.