apache-config-generator/lib/apache/ssl.rb
2010-05-18 13:20:49 -04:00

18 lines
444 B
Ruby

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