Skip to content

Instantly share code, notes, and snippets.

@underoot
Created July 14, 2020 10:53
Show Gist options
  • Save underoot/1e31d6ca6f8839eee51f3e08769f5fd7 to your computer and use it in GitHub Desktop.
Save underoot/1e31d6ca6f8839eee51f3e08769f5fd7 to your computer and use it in GitHub Desktop.
#!/bin/bash
while read line
do
if [ "${line//END}" != "$line" ]; then
txt="$txt$line\n"
printf -- "$txt" | openssl x509 -subject -issuer -noout
txt=""
else
txt="$txt$line\n"
fi
done < $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment