123456789_123456789_123456789_123456789_123456789_

Class: Puma::MiniSSL::Context

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

Instance Attribute Summary

Instance Method Summary

  • #check

    See additional method definition at line 192.

Instance Attribute Details

#ca (rw)

[ GitHub ]

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

attr_reader :ca

#ca=(ca) (rw)

Raises:

  • (ArgumentError)
[ GitHub ]

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

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 199

attr_reader :cert

#cert=(cert) (rw)

Raises:

  • (ArgumentError)
[ GitHub ]

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

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 198

attr_reader :key

#key=(key) (rw)

Raises:

  • (ArgumentError)
[ GitHub ]

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

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 183

attr_reader :keystore

#keystore=(keystore) (rw)

Raises:

  • (ArgumentError)
[ GitHub ]

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

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 184

attr_accessor :keystore_pass

#ssl_cipher_filter (rw)

[ GitHub ]

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

attr_accessor :ssl_cipher_filter

#ssl_cipher_list (rw)

[ GitHub ]

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

attr_accessor :ssl_cipher_list

#verify_mode (rw)

[ GitHub ]

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

attr_accessor :verify_mode

Instance Method Details

#check

See additional method definition at line 192.

[ GitHub ]

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

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