Skip to content

Commit

Permalink
Logische Abfolge beim Programmdurchlauf. Es können jetzt alle Zertifi…
Browse files Browse the repository at this point in the history
…kate, wenn noch gültig, zurückgezogen und ggf. direkt erneuert werden.
  • Loading branch information
flacco committed Oct 4, 2018
1 parent d9f294c commit 354fc87
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions usr/bin/inviscerts
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,8 @@ else
ok=`openssl verify -crl_check -CAfile $ersadir/crl-chain.pem $ersadir/issued/$cn.crt|tr -d " "|cut -d ":" -f2`
if [[ $ok == "OK" ]]; then
echo -e "Das angeforderte Zertifikat existiert bereits und ist noch gültig.\n"
# Widerruf nur bei VPN Client Zertifikaten ermoeglichen"
if [[ $stype == "vpn" ]]; then
read -p "Möchten Sie es widerrufen? [j/N] " revoke
fi
# Widerruf wenn noch gueltig?"
read -p "Möchten Sie es widerrufen? [j/N] " revoke
if [[ $revoke == "j" ]]; then
echo -e "Das angeforderte Zertifikat wird widerrufen.\n"
ok=1
Expand All @@ -203,7 +201,10 @@ else
else
out
fi
else
fi
# Gleich wieder erneuern?
read -p "Soll das soeben wiederrufene Zertifikat erneuert werden? [j/N] " renew
if [[ $renew == "j" ]]; then
echo -e "Das angeforderte Zertifikat wird erneuert.\n"
if [[ $stype == "vpn" ]]; then
ok=1
Expand All @@ -227,5 +228,7 @@ else
fi
deploycerts
out
else
out
fi
fi

0 comments on commit 354fc87

Please sign in to comment.