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

Add ability to create intermediate CA cert #29

Merged
merged 2 commits into from
May 25, 2016
Merged

Conversation

csstaub
Copy link
Contributor

@csstaub csstaub commented May 3, 2016

@alokmenghrajani
Copy link
Contributor

👍

return nil, err
}

authTemplate.Subject = rawCsr.Subject
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be RawSubject

proposedExpiry := time.Now().AddDate(years, 0, 0).UTC()
// ensure cert doesn't expire after issuer
if caExpiry.Before(proposedExpiry) {
authTemplate.NotAfter = caExpiry
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should show a warning when we take this branch.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah. probably ditto for host certs.

@alokmenghrajani
Copy link
Contributor

lgtm for reals this time :)

@csstaub csstaub merged commit 2147421 into master May 25, 2016
@csstaub csstaub deleted the cs/intermediate-ca branch May 25, 2016 22:17
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

Successfully merging this pull request may close these issues.

None yet

2 participants