projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'main' of feistymeow.org:feisty_meow
[feisty_meow.git]
/
scripts
/
security
/
show_all_cert_chains.sh
diff --git
a/scripts/security/show_all_cert_chains.sh
b/scripts/security/show_all_cert_chains.sh
index 1fe4125b13691c05b0935fa137ca6aa8725cfdeb..f36415a0eeb7ff2d75cfba83552aec7776c2587f 100644
(file)
--- a/
scripts/security/show_all_cert_chains.sh
+++ b/
scripts/security/show_all_cert_chains.sh
@@
-1,5
+1,10
@@
#!/bin/bash
#!/bin/bash
+# displays every certificate in a PEM file that has a whole certificate chain.
+# this is surprisingly annoying to get anything to output, so we codified it.
+
+# by chris koeritz
+
file="$1"; shift
if [ -z "$file" -o ! -f "$file" ]; then
echo This script requires a PEM-format file name to show the certificates within.
file="$1"; shift
if [ -z "$file" -o ! -f "$file" ]; then
echo This script requires a PEM-format file name to show the certificates within.