Skip to content

Commit 64bf8b1

Browse files
committed
default_overview(): Add peer-fingerprint mode PKI identification
Signed-off-by: Richard T Bonhomme <[email protected]>
1 parent 1cfd480 commit 64bf8b1

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

easyrsa3/easyrsa

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ ${opts:-
643643

644644
# default help
645645
default_overview() {
646-
information "
646+
print "
647647
Easy-RSA 3 Overview:
648648

649649
To get a list of available options and commands, use:
@@ -667,7 +667,7 @@ Invalid vars setting for EASYRSA and/or EASYRSA_PKI${NL}"
667667
fi
668668

669669
# Print details
670-
information "
670+
print "
671671
DIRECTORY STATUS (commands would take effect on these locations)
672672
EASYRSA: $work_dir
673673
PKI: $pki_dir
@@ -691,7 +691,14 @@ DIRECTORY STATUS (commands would take effect on these locations)
691691
print "" # for a clean line
692692
fi
693693
else
694-
information " CA status: CA has not been built${NL}"
694+
if [ -f "$EASYRSA_PKI"/peer-fp.mode ]; then
695+
print "\
696+
CA status: No CA, Peer-Fingerprint only PKI enabled${NL}"
697+
698+
else
699+
print "\
700+
CA status: CA has not been built${NL}"
701+
fi
695702
fi
696703

697704
# verbose info

0 commit comments

Comments
 (0)