10 Zeilen
413 B
Plaintext
10 Zeilen
413 B
Plaintext
|
#!/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 --null-password --bits=$laenge --$typ --outfile=$crtdir/$1.key -8
|
||
|
certtool -c --null-password --load-ca-privkey=ca.key --load-ca-certificate=ca.pem --load-privkey=$crtdir/$1.key --outfile=$crtdir/$1.pem --template=$crtdir/$1.txt
|