#!/bin/bash source ./config if [ -z "$1" ]; then echo -e "nicht genĂ¼gend Argumente\nnutzung: $0 domain" exit 1 fi sed "s/DOMAIN/$1/g" normcert.txt >$crtdir/$1.txt certtool -p --bits=$laenge --$typ --outfile=$crtdir/private/$1.key -8 certtool -c --load-ca-privkey=ca.key --load-ca-certificate=ca.pem --load-privkey=$crtdir/private/$1.key --outfile=$crtdir/certs/$1.crt --template=$crtdir/$1.txt