class Puma::MiniSSL::Context - puma-3.10.0 Documentation

# class Puma::MiniSSL::Context

### Attributes

verify_mode[RW]

### Public Instance Methods

ca=(ca) click to toggle source

    # File lib/puma/minissl.rb, line 183
    def ca=(ca)
      raise ArgumentError, "No such ca file '#{ca}'" unless File.exist? ca
      @ca = ca
    end

cert=(cert) click to toggle source

    # File lib/puma/minissl.rb, line 178
    def cert=(cert)
      raise ArgumentError, "No such cert file '#{cert}'" unless File.exist? cert
      @cert = cert
    end

check() click to toggle source

    # File lib/puma/minissl.rb, line 163
    def check
      raise "Keystore not configured" unless @keystore
    end

key=(key) click to toggle source

    # File lib/puma/minissl.rb, line 173
    def key=(key)
      raise ArgumentError, "No such key file '#{key}'" unless File.exist? key
      @key = key
    end

keystore=(keystore) click to toggle source

    # File lib/puma/minissl.rb, line 158
    def keystore=(keystore)
      raise ArgumentError, "No such keystore file '#{keystore}'" unless File.exist? keystore
      @keystore = keystore
    end