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] cipher list in OpenSSL format (see ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-ciphers-3D)
@return [String, OpenSSL::X509::Certificate] client certificate
@return [String, OpenSSL::PKey::RSA, OpenSSL::PKey::DSA] client key
@return [String] Server hostname used for SNI (see ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLSocket.html#method-i-hostname-3D)
@return [String, Symbol] maximum SSL version (see ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-max_version-3D)
@return [String, Symbol] minimum SSL version (see ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-min_version-3D)
@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)
@return [Integer] Any OpenSSL::SSL:: constant (see ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL.html)
@return [String, Symbol] SSL version (see ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-ssl_version-3D)
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