Module: Apache::SSL

Included in:
Config
Defined in:
lib/apache/ssl.rb

Instance Method Summary collapse

Instance Method Details

#enable_ssl_engine(options = {}) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/apache/ssl.rb', line 3

def enable_ssl_engine(options = {})
  self + [ '', "SSLEngine on" ]
  options.each do |key, value|
    value = value.quoteize
    case key
      when :certificate_file, :certificate_key_file
        self << "SSL#{key.apachify} #{value}"
      when :ca_certificate_file
        self << "SSLCACertificateFile #{value}"
    end
  end
  blank_line!
end