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

Allow override of TLS certificate hostname #68

Merged
merged 2 commits into from
May 24, 2017

Conversation

jd3nn1s
Copy link

@jd3nn1s jd3nn1s commented May 24, 2017

When verifying a certificate that has been passed directly with the
CACert field it is useful to be able to override the hostname without
disabling any other certificate verification checks.

For example: EC2 instances that are given a certificate during
provisioning when the IP is not yet known and there will be no DNS
entry.

When verifying a certificate that has been passed directly with the
CACert field it is useful to be able to override the hostname without
disabling any other certificate verification checks.

For example: EC2 instances that are given a certificate during
provisioning when the IP is not yet known and there will be no DNS
entry.
endpoint.go Outdated
@@ -18,6 +18,8 @@ type Endpoint struct {
HTTPS bool
// set the flag true for skipping ssl verifications
Insecure bool
// if set, used to verify the hostname on the returned certificate
TLSServerName string
Copy link
Owner

Choose a reason for hiding this comment

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

There seem to have a whitespace issue there, can you run make format, then rebase an repush to this PR ?

@masterzen
Copy link
Owner

Thank you for your contribution!

@masterzen masterzen merged commit b09cde2 into masterzen:master May 24, 2017
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.

3 participants