inm-icf-utilities/.appveyor/apache_enable_ssl
Christian Monch 5fe5d3b976 rename root CA file, use this branch in container
Rename ChristianMoenchCA.crt to INM-ICF-TestCA.crt

Clone this branch when building a singularity
container. This should be removed, once the
certificates are in main-branch
2023-05-31 17:33:13 +02:00

17 lines
490 B
Bash
Executable file

#!/bin/bash
set -e -u
sudo cp .appveyor/data/ssl-cert-snakeoil.crt /etc/ssl/certs/ssl-cert-snakeoil.pem
sudo cp .appveyor/data/ssl-cert-snakeoil.key /etc/ssl/private/ssl-cert-snakeoil.key
sudo cp .appveyor/data/INM-ICF-TestCA.crt /usr/local/share/ca-certificates/
sudo /sbin/dpkg-reconfigure ca-certificates
sudo a2enmod ssl
sudo systemctl restart apache2
sudo a2ensite default-ssl
sudo systemctl reload apache2
echo "ServerName data.inm-icf.de" | sudo tee -a /etc/apache2/httpd.conf