Class GELF::Transport::TCPTLS
In: lib/gelf/transport/tcp_tls.rb
Parent: TCP

Provides encryption capabilities for TCP connections

Methods

Attributes

rescue_ssl_errors  [RW]  Supported tls_options:
  'no_default_ca' [Boolean] prevents OpenSSL from using the systems CA store.
  'version' [Symbol] any of :TLSv1, :TLSv1_1, :TLSv1_2 (default)
  'ca' [String] the path to a custom CA store
  'cert' [String, IO] the client certificate file
  'key' [String, IO] the key for the client certificate
  'all_ciphers' [Boolean] allows any ciphers to be used, may be insecure
  'rescue_ssl_errors' [Boolean] similar to rescue_network_errors in notifier.rb, allows SSL exceptions to be raised
  'no_verify' [Boolean] disable peer verification

Public Class methods

Protected Instance methods

checks whether {resource} is a filename and tries to read it otherwise treats it as if it already contains certificate/key data

Ciphers have to come from the CipherString class, specifically the TXT constants here - github.com/jruby/jruby-openssl/blob/master/src/main/java/org/jruby/ext/openssl/CipherStrings.java#L47-L178

Initiates TLS communication on the socket

SSL v2&3 are insecure, forces at least TLS v1.0 and defaults to v1.2

[Validate]