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

improved handling for self-signed certificate validation #412

Merged
merged 3 commits into from
Nov 6, 2017
Merged

improved handling for self-signed certificate validation #412

merged 3 commits into from
Nov 6, 2017

Conversation

eliburke
Copy link

separate disableCertValidation from overrideTrustHostname
add a 2nd method of getting the remote host domain name in sslTrust()

add a 2nd method of getting the remote host domain name
Copy link
Author

@eliburke eliburke left a comment

Choose a reason for hiding this comment

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

this fix preserves to original behavior of completely disabling domain name checking when overrideTrustHostname is set to true and desiredTrustHostname is set to nil or empty string

…ecks. The

existing code would not work in cases where a CA cert was trusted, and the web
site used a signed leaf certificate. default behavior is unchanged
@eliburke
Copy link
Author

@daltoniam hey can you let me know if you have an opinion or any complaints on these changes? I'd be happy to explain all of them in more detail, or make changes if you prefer.

@daltoniam
Copy link
Owner

@eliburke took me longer than I would like, but finally got around to taking a look at this. The changes make sense, I like it. Nice work, thanks!

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