X-Git-Url: http://git.pld-linux.org/?p=packages%2Fopenssl.git;a=blobdiff_plain;f=openssl-ssl-certificate.sh;h=dd65c96977d7cdf682213843f9753084d45900f0;hp=234c661c8dace5b7df6251d0f2f0cce249fd353c;hb=2450a3005fd2469cab3b19538af2a1cc4de854d3;hpb=15ceaa80c64d8e61207307d34d3042b73dfe6ade diff --git a/openssl-ssl-certificate.sh b/openssl-ssl-certificate.sh index 234c661..dd65c96 100644 --- a/openssl-ssl-certificate.sh +++ b/openssl-ssl-certificate.sh @@ -1,6 +1,6 @@ #!/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 @@ -19,7 +19,7 @@ echo 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 @@ -30,4 +30,4 @@ openssl req $@ -config /etc/openssl/openssl.cnf \ 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