Skip to content
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

Intermediate certificate #3

Open
dmail opened this issue Nov 24, 2021 · 0 comments
Open

Intermediate certificate #3

dmail opened this issue Nov 24, 2021 · 0 comments

Comments

@dmail
Copy link
Member

dmail commented Nov 24, 2021

A root certificate can generate certificate for any domain. If some code knows where to look at, it could reuse the root certificate to generate trusted certificate for a domain that you would not expect.

In this scenario code you don't own is executed on your machine. The code would do things more problematic than generating a trusted certificate to fool you somehow... For this reason this issue won't be a priority.

But in case, this is what could be done:

  1. Generate an intermediate certificate from the root certificate
  2. This intermediate certificate would be allowed to generate certificate for a subset of domains
  3. Remove the root certificate from the filesystem

To keep in mind: This module can be used by X project on 1 machine. In other words the intermediate certificate should be allowed to generate certificate for all projects. In this scenario it means project B wants to reuse intermediate CA from project A, in that case we could regen root CA to regen an intermediate CA allowed to generate certificates for both A and B.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant