Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add option to create CA restricted to some domains #94

Merged
merged 1 commit into from
May 1, 2020

Conversation

fd0
Copy link
Contributor

@fd0 fd0 commented Dec 20, 2019

As discussed in #92 this PR adds the option to create a CA restricted to subdomains of some domains. Sample usage:

$ ./certstrap init --cn myca --permit-domain .example.com --permit-domain .otherdomain.com

This is a first version, please let me know what you think! Ideas for future improvement: We could print an error if a certificate is to be signed which is not valid with the restrictions.

IP network restrictions work in a very similar way.

Closes #92

@claassistantio
Copy link

claassistantio commented Dec 20, 2019

CLA assistant check
All committers have signed the CLA.

@fd0 fd0 force-pushed the add-permitted-domain branch from 61e08b0 to 99059f9 Compare December 20, 2019 13:18
@mcpherrinm
Copy link
Contributor

Thank you. This looks fine in principle. I'm about to travel, but I will review the code shortly.

@mcpherrinm
Copy link
Contributor

Sorry, not sure why I approved but didn't merge this earlier.

@mcpherrinm mcpherrinm merged commit 186cfda into square:master May 1, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add name constraints to CA cert?
3 participants