My Electron desktop app is visiting a https website in the renderer process with the methods of BrowserWindow.loadURL, BrowserView.loadURL or BrowserWindow.webContents.loadURL. However the target website needs to verify my client certificate. How can I make a request with the client certificate ? What I have are a .crt file, a .key file and two CA certificate files.
I tried the 'select-client-certificate' event, but it wasn't fired. I also tried app.commandLine.appendSwitch('client-certificate', <the path to .pfx certificate file>) but it didn't work either.