summaryrefslogtreecommitdiffstats
path: root/base/java-tools
diff options
context:
space:
mode:
Diffstat (limited to 'base/java-tools')
-rw-r--r--base/java-tools/templates/pretty_print_cert_command_wrapper.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/java-tools/templates/pretty_print_cert_command_wrapper.in b/base/java-tools/templates/pretty_print_cert_command_wrapper.in
index 63451d0c5..882e7a17e 100644
--- a/base/java-tools/templates/pretty_print_cert_command_wrapper.in
+++ b/base/java-tools/templates/pretty_print_cert_command_wrapper.in
@@ -137,7 +137,7 @@ if [ $# -eq 1 ] ||
then
if [ "$1" = "-simpleinfo" ]
then
- file $2 | grep 'ASCII text' > /dev/null
+ file $2 | grep -E 'ASCII text|PEM certificate' > /dev/null
if [ $? -ne 0 ] ; then
${JAVA} ${JAVA_OPTIONS} -cp ${CP} com.netscape.cmstools.${COMMAND}
printf "\n"
@@ -147,7 +147,7 @@ then
exit 255
fi
else
- file $1 | grep 'ASCII text' > /dev/null
+ file $1 | grep -E 'ASCII text|PEM certificate' > /dev/null
if [ $? -ne 0 ] ; then
${JAVA} ${JAVA_OPTIONS} -cp ${CP} com.netscape.cmstools.${COMMAND}
printf "\n"