123456789_123456789_123456789_123456789_123456789_

Class: Puma::MiniSSL::Context

Relationships & Source Files
Inherits: Object
Defined in: lib/puma/minissl.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

  • #check

    See additional method definition at line 239.

Constructor Details

.newContext

[ GitHub ]

  
# File 'lib/puma/minissl.rb', line 223

def initialize
  @no_tlsv1   = false
  @no_tlsv1_1 = false
end

Instance Attribute Details

#ca (rw)

[ GitHub ]

  
# File 'lib/puma/minissl.rb', line 247

attr_reader :ca

#ca=(ca) (rw)

Raises:

  • (ArgumentError)
[ GitHub ]

  
# File 'lib/puma/minissl.rb', line 261

def ca=(ca)
  raise ArgumentError, "No such ca file '#{ca}'" unless File.exist? ca
  @ca = ca
end

#cert (rw)

[ GitHub ]

  
# File 'lib/puma/minissl.rb', line 246

attr_reader :cert

#cert=(cert) (rw)

Raises:

  • (ArgumentError)
[ GitHub ]

  
# File 'lib/puma/minissl.rb', line 256

def cert=(cert)
  raise ArgumentError, "No such cert file '#{cert}'" unless File.exist? cert
  @cert = cert
end

#key (rw)

non-jruby Context properties

[ GitHub ]

  
# File 'lib/puma/minissl.rb', line 245

attr_reader :key

#key=(key) (rw)

Raises:

  • (ArgumentError)
[ GitHub ]

  
# File 'lib/puma/minissl.rb', line 251

def key=(key)
  raise ArgumentError, "No such key file '#{key}'" unless File.exist? key
  @key = key
end

#keystore (rw)

jruby-specific Context properties: java uses a keystore and password pair rather than a cert/key pair

[ GitHub ]

  
# File 'lib/puma/minissl.rb', line 230

attr_reader :keystore

#keystore=(keystore) (rw)

Raises:

  • (ArgumentError)
[ GitHub ]

  
# File 'lib/puma/minissl.rb', line 234

def keystore=(keystore)
  raise ArgumentError, "No such keystore file '#{keystore}'" unless File.exist? keystore
  @keystore = keystore
end

#keystore_pass (rw)

[ GitHub ]

  
# File 'lib/puma/minissl.rb', line 231

attr_accessor :keystore_pass

#no_tlsv1 (rw)

[ GitHub ]

  
# File 'lib/puma/minissl.rb', line 221

attr_reader :no_tlsv1, :no_tlsv1_1

#no_tlsv1=(tlsv1) (rw)

disables TLSv1

Raises:

  • (ArgumentError)
[ GitHub ]

  
# File 'lib/puma/minissl.rb', line 274

def no_tlsv1=(tlsv1)
  raise ArgumentError, "Invalid value of no_tlsv1=" unless ['true', 'false', true, false].include?(tlsv1)
  @no_tlsv1 = tlsv1
end

#no_tlsv1_1 (rw)

[ GitHub ]

  
# File 'lib/puma/minissl.rb', line 221

attr_reader :no_tlsv1, :no_tlsv1_1

#no_tlsv1_1=(tlsv1_1) (rw)

disables TLSv1 and TLSv1.1. Overrides #no_tlsv1=

Raises:

  • (ArgumentError)
[ GitHub ]

  
# File 'lib/puma/minissl.rb', line 281

def no_tlsv1_1=(tlsv1_1)
  raise ArgumentError, "Invalid value of no_tlsv1_1=" unless ['true', 'false', true, false].include?(tlsv1_1)
  @no_tlsv1_1 = tlsv1_1
end

#ssl_cipher_filter (rw)

[ GitHub ]

  
# File 'lib/puma/minissl.rb', line 248

attr_accessor :ssl_cipher_filter

#ssl_cipher_list (rw)

[ GitHub ]

  
# File 'lib/puma/minissl.rb', line 232

attr_accessor :ssl_cipher_list

#verification_flags (rw)

[ GitHub ]

  
# File 'lib/puma/minissl.rb', line 249

attr_accessor :verification_flags

#verify_mode (rw)

[ GitHub ]

  
# File 'lib/puma/minissl.rb', line 220

attr_accessor :verify_mode

Instance Method Details

#check

See additional method definition at line 239.

[ GitHub ]

  
# File 'lib/puma/minissl.rb', line 266

def check
  raise "Keystore not configured" unless @keystore
end