Skip to content

internal/driver: omit empty DNS SAN in selfSignedCert - #1073

Open
rolandshoemaker wants to merge 1 commit into
google:mainfrom
rolandshoemaker:fix-empty-san
Open

rolandshoemaker wants to merge 1 commit into
google:mainfrom
rolandshoemaker:fix-empty-san

Conversation

@rolandshoemaker

Copy link
Copy Markdown

Go's crypto/x509.CreateCertificate now rejects empty strings in Certificate.DNSNames (go.dev/cl/862981). TestHTTPSInsecure calls selfSignedCert(t, ""), which previously set DNSNames to []string{""}.

Only populate Certificate.DNSNames when host is non-empty.

Go's crypto/x509.CreateCertificate now rejects empty strings in
Certificate.DNSNames (go.dev/cl/862981). TestHTTPSInsecure calls
selfSignedCert(t, ""), which previously set DNSNames to []string{""}.

Only populate Certificate.DNSNames when host is non-empty.
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.

1 participant