-
Notifications
You must be signed in to change notification settings - Fork 16
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
Investigate the root cause of the self-signed certificate bug #115
Comments
The cause I found is when a self-signed certificate is not marked as being capable of signing. In OpenSSL this is not required but with BoringSSL it seems to be. The key usage is checked here: Which causes it to take this route: By contrast, notice openssl has code that circumvents this check for self-signed certificates: How to verify if your certificate has this issue
Example of a broken certificate:
Example of a working certificate that specifies signing:
Example of a working certificate that does not set
WorkaroundsHow to generate a working certificate with opensslWith
Alternatively, if you are using a config file then you can add
How to generate a working certificate with
|
In some cases the VS Code plugin reports that something is self-signed when really it is a partial chain. So this is another possible cause of the issue. In this case the solution is to provide the full chain, either by putting intermediates on the system or serving them bundled together with the leaf certificate. |
Self-signed certificates do not seem to work correctly due to a suspected issue in Electron. There is some uncertainty on how this can be the case given that the issue does not seem to appear in Chrome which Electron seems to inherit from. This issue is to track the root cause of the bug, even if we cannot directly fix it since the bug is upstream. Additionally, we should add workaround commands to this issue:
The text was updated successfully, but these errors were encountered: