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

using genCA and genSignedCert to create an intermediary CA #409

Open
mtgmmansour opened this issue Sep 3, 2024 · 0 comments
Open

using genCA and genSignedCert to create an intermediary CA #409

mtgmmansour opened this issue Sep 3, 2024 · 0 comments

Comments

@mtgmmansour
Copy link

mtgmmansour commented Sep 3, 2024

Hello,
I am trying to use genCA and genSignedCert in helm to create a Root CA and Sub CA. if I do it in this way:

  {{- $RootCA := genCA (printf "%s - %s" .Release.Name "default server RootCA") 36500 }}
  {{- $SubCA := genSignedCert (printf "%s - %s" .Release.Name "default server SubCA" ) nil nil 36499 $RootCA }}
  

I get a subCA, but i see in the certificate basic constrains that it's not a CA.

image

Also, the key usage of the generated SubCA is not correct, it should have at least certificate signing in order to use it for signing server certificates. if we try to send the complete server chain, the browser will through an error SEC_ERROR_INADEQUATE_KEY_USAGE

Is there another way to create a correct SubCA in the sprig library.

thank you.

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