Sha256: 95abc79f86bfe48d12299b0f10cd4c5c4a5824248062a98157c75efe3923669a

Contents?: true

Size: 687 Bytes

Versions: 1

Compression:

Stored size: 687 Bytes

Contents

module Legion
  module Transport
    module Connection
      module SSL
        def settings
          Legion::Settings[:transport][:tls] || {}
        end

        def use_vault_pki?
          settings[:use_vault_pki] && Legion::Settings[:crypt][:vault][:connected]
        end

        def use_tls?
          settings[:use_tls] || Legion::Settings[:transport][:port] == 5671
        end

        def tls_cert
          settings[:tls_cert]
        end

        def tls_key
          settings[:tls_key]
        end

        def ca_certs
          settings[:ca_certs]
        end

        def verify_peer?
          settings[:verify_peer] || false
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
legion-transport-1.2.0 lib/legion/transport/connection/ssl.rb