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

creating intermediate ca signed by an external root #30

Open
heidricha opened this issue Jun 27, 2023 · 5 comments
Open

creating intermediate ca signed by an external root #30

heidricha opened this issue Jun 27, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@heidricha
Copy link

heidricha commented Jun 27, 2023

I don't understand the concept of creating an intermediate ca.

In my understanding, it should create a full CA, but instead of the ca.crt, a csr should be created, and after getting it signed with the root-CA, the ca.crt should be uploaded. it works this way using easy-rsa f.e.

here, when I create a ca with "intermediate": true, and "parent_common_name" added, the resulted CA data will contain only keys, and "isIntermediate": false

It's my issue tbh, but how this flow supposed to work?

@necheffa
Copy link
Collaborator

I am assuming you are working with the REST API?

First you'll want to hit /api/v1/ca to create a root CA if you have not done so already.
Then you'll want to hit /api/v1/ca again to create an intermediate CA.

When you send your payload to create an intermediate CA, you want to set intermediate to true and parent_common_name to the CN of the root CA that will be signing your intermediate CA.

The result should then be that the intermediate CA is generated and signed at this point.

@heidricha
Copy link
Author

heidricha commented Jun 29, 2023

I tried to use an external root for the intermediate cert.
Is it supported in some way (like placing the CA data manually), or the intermediate CA can only be signed by the local root?

I tried to replace the pki files for the intermediate CA with files from a valid sub-CA, signed by an external root, but all I have now is "error 500"

@heidricha heidricha changed the title creating intermediate ca creating intermediate ca signed by an external root Jun 29, 2023
@necheffa
Copy link
Collaborator

I do not believe using an external CA is a currently supported use case.

@necheffa necheffa added the enhancement New feature or request label Jun 30, 2023
@kairoaraujo
Copy link
Owner

The current use case of intermediate CA is when you are the CA admin and want to delegate an intermediate CA.

@heidricha
Copy link
Author

The current use case of intermediate CA is when you are the CA admin and want to delegate an intermediate CA.

Thanks for making it clear!

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

No branches or pull requests

3 participants