From 2350e3cbc18079c43c54fe5d698836f96bdcea60 Mon Sep 17 00:00:00 2001 From: Slawek Koszewski Date: Mon, 28 Jul 2025 21:25:03 +0200 Subject: [PATCH] Added a script that prints certificates. --- print-certificates.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 print-certificates.sh diff --git a/print-certificates.sh b/print-certificates.sh new file mode 100755 index 0000000..241a1f8 --- /dev/null +++ b/print-certificates.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +GREEN='\033[0;32m' +NC='\033[0m' # No Color + +for cert in ca/certs/*.pem +do + echo -e "${GREEN}----- Certificate: $(basename $cert)${NC}" + openssl x509 -in "$cert" -noout -text + echo -e "${GREEN}----- End of Certificate -----${NC}\n" +done