#!/bin/sh -e
-CERT=/var/lib/openssl/certs/apache.pem
+CERT=/etc/openssl/certs/apache.pem
export RANDFILE=/dev/random
if [ "$1" != "--force" -a -f $CERT ]; then
echo enter your ServerName at the Common Name prompt
echo
echo If you want your certificate to expire after x days call this programm
-echo with "-days x"
+echo with "-days x". Default: 30 days
# use special .cnf, because with normal one no valid selfsigned
# certificate is created
chmod 600 $CERT
ln -sf $CERT \
- /var/lib/openssl/`/usr/bin/openssl x509 -noout -hash < $CERT`.0
+ /etc/openssl/certs/`/usr/bin/openssl x509 -noout -hash < $CERT`.0