apache-config-generator/lib/apache/ssl.rb
2010-05-12 14:24:35 -04:00

19 lines
455 B
Ruby

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