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

Cert-checker: Don't require clientEKU #7939

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

mcpherrinm
Copy link
Contributor

@mcpherrinm mcpherrinm commented Jan 11, 2025

This is required now that we're going to issue certificates with only the server EKU.

Fixes #7938

This is required now that we're going to issue certificates with only the server EKU.
@mcpherrinm mcpherrinm requested a review from a team as a code owner January 11, 2025 17:17
@mcpherrinm mcpherrinm requested a review from jprenken January 11, 2025 17:17
Comment on lines +426 to +427
clientOnly := slices.Equal(parsedCert.ExtKeyUsage, []zX509.ExtKeyUsage{zX509.ExtKeyUsageServerAuth})
if !(serverAndClient || clientOnly) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
clientOnly := slices.Equal(parsedCert.ExtKeyUsage, []zX509.ExtKeyUsage{zX509.ExtKeyUsageServerAuth})
if !(serverAndClient || clientOnly) {
serverOnly := slices.Equal(parsedCert.ExtKeyUsage, []zX509.ExtKeyUsage{zX509.ExtKeyUsageServerAuth})
if !(serverAndClient || serverOnly) {

Copy link
Contributor

@jprenken jprenken left a comment

Choose a reason for hiding this comment

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

Looks good, but I think clientOnly should be serverOnly for clarity.

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.

Cert-checker is hardcoded to check for ExtKeyUsageClientAuth
2 participants