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

ssl[:verify]: Add :noop option to turn off only the hostname verification #111

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

edmocosta
Copy link

@edmocosta edmocosta commented Mar 1, 2023

Added an ssl[:verify] option :noop to turn off only the hostname verification, unlike :none or :disabled that overrides the trust_strategy, this new option still validates the certificate, ignoring only the hostname verification.

else
raise "Invalid value for :verify. Valid values are (:default, :browser, :none)"
raise "Invalid value for :verify. Valid values are (:default, :browser, :noop, :none)"
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is simply confusing, I think the other values were trying to help the user understand.

but now having :noop, :none just adds confusion to the mix, guess we could accept :noop internally but maybe as undocumented or at least not shown here...

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for reviewing, I agree,:noop is indeed confusing, I ended up using it to keep it similar to the Apache's verifier. Other names that came to my mind are:certificate and :ca. Do you have any suggestion?

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