Method: Uninterruptible::Configuration#tls_version
- Defined in:
- lib/uninterruptible/configuration.rb
#tls_version ⇒ Object
TLS version to use for the connection. Must be one of Uninterruptible::Configuration::AVAILABLE_SSL_VERSIONS If unset, connection will be unencrypted.
63 64 65 66 67 68 69 70 71 |
# File 'lib/uninterruptible/configuration.rb', line 63 def tls_version version = @tls_version || ENV['TLS_VERSION'] || 'TLSv1_2' unless AVAILABLE_SSL_VERSIONS.include?(version) raise ConfigurationError, "Please ensure tls_version is one of #{AVAILABLE_SSL_VERSIONS.join(', ')}" end version end |