space vs tabs and trailing white spaces
This commit is contained in:
parent
f8be2842f3
commit
0356d31d9e
10
shellpki.sh
10
shellpki.sh
|
@ -91,7 +91,7 @@ $OPENSSL ca \
|
||||||
-in $DIR/$cn.csr \
|
-in $DIR/$cn.csr \
|
||||||
-out $DIR/$cn.crt
|
-out $DIR/$cn.crt
|
||||||
|
|
||||||
# pem cert style
|
# pem cert style
|
||||||
cp $DIR/$cn.key $DIR/$cn.pem
|
cp $DIR/$cn.key $DIR/$cn.pem
|
||||||
cat $DIR/$cn.crt >> $DIR/$cn.pem
|
cat $DIR/$cn.crt >> $DIR/$cn.pem
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ if [ -e $PREFIX/template.conf ]; then
|
||||||
|
|
||||||
cp $PREFIX/template.conf $REP/$cn.conf
|
cp $PREFIX/template.conf $REP/$cn.conf
|
||||||
echo "
|
echo "
|
||||||
|
|
||||||
<ca>
|
<ca>
|
||||||
$(cat $CA)
|
$(cat $CA)
|
||||||
</ca>
|
</ca>
|
||||||
|
@ -146,7 +146,7 @@ revoke() {
|
||||||
|
|
||||||
$OPENSSL ca \
|
$OPENSSL ca \
|
||||||
-config $CONFFILE \
|
-config $CONFFILE \
|
||||||
-revoke $PREFIX/certs/$cn.crt
|
-revoke $PREFIX/certs/$cn.crt
|
||||||
|
|
||||||
rm -i $PREFIX/certs/$cn.crt
|
rm -i $PREFIX/certs/$cn.crt
|
||||||
rm -i $WWWDIR/$cn.crt
|
rm -i $WWWDIR/$cn.crt
|
||||||
|
@ -160,7 +160,7 @@ fromcsr() {
|
||||||
echo
|
echo
|
||||||
|
|
||||||
if [ ! -e $path ]; then
|
if [ ! -e $path ]; then
|
||||||
echo "Error in path..." >&2
|
echo "Error in path..." >&2
|
||||||
echo >&2
|
echo >&2
|
||||||
echo "Press return to continue..." >&2
|
echo "Press return to continue..." >&2
|
||||||
read REPLY
|
read REPLY
|
||||||
|
@ -197,7 +197,7 @@ echo
|
||||||
|
|
||||||
|
|
||||||
crl() {
|
crl() {
|
||||||
|
|
||||||
$OPENSSL ca -gencrl \
|
$OPENSSL ca -gencrl \
|
||||||
-config $CONFFILE \
|
-config $CONFFILE \
|
||||||
-out crl.pem
|
-out crl.pem
|
||||||
|
|
Loading…
Reference in a new issue