apache-config-generator/lib/apache/ssl.rb
2010-05-19 09:48:33 -04:00

18 lines
438 B
Ruby

module Apache
module SSL
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
end
end