Skip to content

Instantly share code, notes, and snippets.

@SaveTheRbtz
Created March 22, 2016 19:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SaveTheRbtz/29a7899ce1aae7606b74 to your computer and use it in GitHub Desktop.
Save SaveTheRbtz/29a7899ce1aae7606b74 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 < $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment