Skip to content

Conversation

@ameir
Copy link

@ameir ameir commented Jul 11, 2018

When using SAN certs, hostname verification is enforced. If the server hostname in server_addr doesn't match one of the names in the cert, thenthe connection fails. This PR allows you to specify an allowed hostname. The use-case for this is that we have auto-generated certs per node in AWS,but are establishing the tunnel through an NLB. The NLB hostname does not match what is in the cert, so the connection fails without this patch.

…r hostname in `server_addr` doesn't match one of the names in the cert, then the connection fails. This PR allows you to specify an allowed hostname. The use-case for this is that we have auto-generated certs per node in AWS, but are establishing the tunnel through an NLB. The NLB hostname does not match what is in the cert, so the connection fails without this patch.
@mmatczuk
Copy link
Owner

If the server hostname in server_addr doesn't match one of the names in the cert, thenthe connection fails.

In my view this is a generally expected behavior and adding the change would be confusing for other users.

I believe your problem shall be solved by a better cert generation and DNS service registration.

@ameir
Copy link
Author

ameir commented Jul 15, 2018 via email

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