: !/bin/sh echo "Step 5: Install generated ssl files to apache conf" cp server.key /usr/local/apache/conf/ssl.key/server.key chmod 400 /usr/local/apache/conf/ssl.key/server.key cp cert.cer server.crt cp server.crt /usr/local/apache/conf/ssl.crt/server.crt chmod 400 /usr/local/apache/conf/ssl.crt/server.crt cp server.csr /usr/local/apache/conf/ssl.csr/server.csr chmod 400 /usr/local/apache/conf/ssl.csr/server.csr echo "" exit echo "" echo "Step 6: Manually tweak /usr/local/apache/conf/httpd.conf" cat < # General setup for the virtual host; inherited from global configuration. DocumentRoot "/var/www-ssl/html" Finally... restart apache with /etc/apache restart test with... curl -k https://mon2/ MSG2 exit 0