Commit 27ddb46f authored by Stefan Galinski's avatar Stefan Galinski 🎮
Browse files

[TASK] Use the main certificate ...

parent e2841281
......@@ -47,20 +47,13 @@ end
### Setup Configuration ###
###########################
# create ssl certificate (requires that typo3_site (or a kind of) was executed before this script)
bash 'Create Certificate' do
cwd '/etc/apache2/ssl/'
code <<-EOF
./create_certificate_for_domain.sh #{node['webgrind']['hostname']}
EOF
action :run
end
# ssl certificate needed (requires that typo3_site (or a kind of) was executed before this script)
template node['webgrind']['install_path'] + '/webgrind.config.php.erb' do
source 'webgrind.config.php.erb'
mode '0644'
variables(
:params => node['webgrind']
:params => node['webgrind'],
:certificate => node['typo3_site']['hostname'] + '.crt'
)
action :create
end
......
......@@ -40,7 +40,7 @@
# SSLCertificateFile directive is needed.
#SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
#SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
SSLCertificateFile /etc/apache2/ssl/<%= @params[:server_name] %>.crt
SSLCertificateFile /etc/apache2/ssl/<%= @params[:certificate] %>
SSLCertificateKeyFile /etc/apache2/ssl/device.key
# HSTS (mod_headers is required) (15768000 seconds = 6 months)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment