-
Notifications
You must be signed in to change notification settings - Fork 15.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client certificate not working #1221
Comments
yup the flag is supported, it is implemented here https://github.com/brightray/brightray/blob/master/browser/url_request_context_getter.cc#L214 , the silent failure is probably due to not having this method https://code.google.com/p/chromium/codesearch#chromium/src/content/public/browser/content_browser_client.h&sq=package:chromium&l=391&type=cs , not quite sure. @zcbenz should this be implemented in brightray like how nw.js has it https://github.com/nwjs/nw.js/blob/c636f94c0e0cbdfd52fc89d095414585f6a16275/src/shell_content_browser_client.cc#L499 ? EDIT: added link to ignorecertificate flag implementation in brightray, seems like i missed that the first time ;) |
Yeah I think we should have it implemented in brightray. |
@kwindla Can you provide a test case for this? We can not reproduce it. |
Test case is here: https://github.com/kwindla/test-ignore-cert-errors You folks having difficulty reproducing this worried me, so I did a little more digging to narrow things down more. The certificate that was not working for me is the certificate that ships with webpack-dev-server. That certificate has an empty Common Name field. Certificates with something in the Common Name field -- such as the certificate that ships with gulp-webserver -- works fine. The test case covers both kinds of certificates. |
Thanks for the test case, the problem was webpack-dev-server creates https server with |
@zcbenz maybe this could be tracked as support for client-certificate or a new ticket perhaps ? |
We can keep this open to track client certificate support, I have edited the title. |
It seems that no one cares about client certificate support, so I'm closing this. |
Just getting back to this, now. Thanks for figuring out the issue with webpack-dev-server. I don't particularly care about support for client certificates, just compatibility with webpack-dev-server. :-) I'll submit a patch to webpack-dev-server to make the requestCert option configurable. |
hi @zcbenz .. actually we would be very interested in using client certificates 😄 as this is the way how single sign on is done for all our internal systems. There are a couple of open issues on nw.js and I have created a simple test case to set up a node server checking for client certificates and generate all the needed stuff around. Most browsers fetch client certificates from the system keystore and ask via a popup which one to use. There are also ways via group policies etc. to prevent this popup and automatically select the right certificate (e.g. depending on the issuer). |
@thojansen Sounds reasonable to me 👍 |
@zcbenz I have a work project that also makes heavy use of client certificates. It would be great if they could get implemented in Electron. While having Electron pull from the system keystore would be one step, it would also be useful if we could manually pass in a certificate that we bundle with our application. That way it wouldn't be necessary for our clients to install a separate certificate to access our system but we could still lock down access to our server just to people who are using the application. |
Hey @zcbenz, I don't know if would help any but I think the CEF project just recently implemented client certificates: https://bitbucket.org/chromiumembedded/cef/issue/1608/add-support-for-client-certificate-ssl |
looks good 👍 |
Hey guys, we'd really like to see this implemented, so we posted a $250 bounty for it on Bounty Source: https://www.bountysource.com/issues/9338919-client-certificate-not-working We're hoping we can get a couple things out of this:
1 is a must for this, but we'd love to have 2 and 3! Here's the NW.js thread for reference: |
Hi,
The docs list
--ignore-certificate-errors
as a supported chromium switch. I'm trying to set up a test/integration/development environment for my apps using self-signed certificates, but am not having any luck getting this switch to work. I'm using v0.21.3 on both Linux and OS X.My code opens BrowserWindow content fine when pointed at servers with valid certs. But for GET requests to servers without valid certs, the DevTools always show that the network request never receives any bytes. I'm assuming this (silent) failure is a result of ssl validation failure inside chromium.
I've tried both:
Searching the github repo for the strings 'ignore-certificate-errors' and kIgnoreCertificateErrors doesn't produce any code results. I probably just don't understand how command line switches are wired up (I'll look more deeply), but I was wondering if this switch is, in fact, supported and whether the docs are up to date.
Thanks very much.
The text was updated successfully, but these errors were encountered: