Skip to content

Go 1.11 fix for certificate common name.#4114

Merged
alainjobart merged 1 commit intovitessio:masterfrom
alainjobart:tls
Jul 30, 2018
Merged

Go 1.11 fix for certificate common name.#4114
alainjobart merged 1 commit intovitessio:masterfrom
alainjobart:tls

Conversation

@alainjobart
Copy link
Copy Markdown
Contributor

In go 1.11, common name is ignored when it doesn't parse as a host name.
See this change:
https://go-review.googlesource.com/c/go/+/123355
So we make it look like a host name in tests.

Also add ServerName to MySQL conn parameters, so it can be specified
explicitely, instead of using the defaults always.

Signed-off-by: Alain Jobart alainjobart@google.com

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How about server.example.com?

That's an intentionally reserved domain which can be used in documentations. See www.example.com.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done, for both tests, and rebased / squashed.

In go 1.11, common name is ignored when it doesn't parse as a host name.
See this change:
https://go-review.googlesource.com/c/go/+/123355
So we make it look like a host name in tests.

Also add ServerName to MySQL conn parameters, so it can be specified
explicitely, instead of using the defaults always.

Signed-off-by: Alain Jobart <alainjobart@google.com>
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.

2 participants