Description
- Electron version: 1.4.8
- Operating system: Windows 8.1 x64
Expected behavior
There should be a way to skip client cert request.
Server can ask for the client cert optionally and even if the clien 5D9A t didn't send client certificate, server will still continues with the connection as usual.
For ex, Tomcat can be configured like: <Connector port="9443" protocol="HTTP/1.1" clientAuth="want" scheme="https" ...>
. Similarly, Node.js server can be configured to {requestCert: true, rejectUnauthorized: false, ...}
while creating server instance (as mentioned here). Server can be configured like this, and another filter/middleware can reject the request for some resources.
Actual behavior
Currently there is no way to not sending any client cert when server asks for it.
If I call the callback
without any certificate arg, Caught unhandled exception: TypeError: Insufficient number of arguments.
is coming. If I didn't invoke the callback
at all, the request is in pending state till the timeout occur, which is expected.
How to reproduce
app.on('select-client-certificate', (event, webContents, url, list, callback) => {
event.preventDefault()
callback(list[ 0 ])
})