class Faraday::SSLOptions

SSL-related options.

Besides the accessors, it keeps the Struct-style reads it had when it was an {Options} ([], fetch, key?), which adapters rely on, e.g. +env.fetch(:verify, true)+, see {StructCompat}.

Constants

MEMBERS

Attributes

@return [String] CA file

@return [String] CA path

@return [OpenSSL::X509::Store] certificate store. It is not built lazily,

adapters create their own default one when it is not set.

@return [OpenSSL::X509::Certificate] certificate (Excon only)

@return [String, OpenSSL::X509::Certificate] client certificate

@return [String, OpenSSL::PKey::RSA, OpenSSL::PKey::DSA] client key

@return [OpenSSL::PKey::RSA, OpenSSL::PKey::DSA] private key (Excon only)

@return [Boolean] whether to verify SSL certificates or not

@return [Integer] maximum depth for the certificate chain verification

@return [Boolean] whether to enable hostname verification on server certificates

during the handshake or not (see https://github.com/ruby/openssl/pull/60)

Public Instance Methods

@return [Boolean] true if should not verify

# File lib/faraday/options/ssl_options.rb, line 74
def disable?
  !verify?
end

@return [Boolean] true if should verify

# File lib/faraday/options/ssl_options.rb, line 69
def verify?
  verify != false
end

@return [Boolean] true if should verify_hostname

# File lib/faraday/options/ssl_options.rb, line 79
def verify_hostname?
  verify_hostname != false
end