Skip to content

The link to OpenSSL::SSL::SSLContext#set_params in the README is not particularly helpful #207

Description

@x-yuri

https://github.com/redis-rb/redis-client/blob/v0.22.2/README.md#configuration
https://www.rubydoc.info/stdlib/openssl/OpenSSL%2FSSL%2FSSLContext:set_params

Maybe it was some time ago, but these days it's not.

The link provided by the openssl gem is.

Also I noticed a mysterious (supposedly) no-op line in the code:

        context.set_params(params)
        if context.verify_mode != OpenSSL::SSL::VERIFY_NONE
          if context.respond_to?(:verify_hostname) # Missing on JRuby
            context.verify_hostname  # O.o
          end
        end

        context

introduced here.

verify_hostname looks like a read-write attribute to me. According to the documentation and the code. Can you explain what it's doing?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions