Created
July 14, 2020 10:53
-
-
Save underoot/1e31d6ca6f8839eee51f3e08769f5fd7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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