Last active
February 19, 2018 15:26
-
-
Save tst2005/797af97fd263677da9e3eede873887ac to your computer and use it in GitHub Desktop.
openssl 1.1.x remove the /usr/lib/ssl/misc/c_info and change the issuer/subject text output format
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/sh | |
| # source: https://gist.github.com/tst2005/797af97fd263677da9e3eede873887ac | |
| for i in $* | |
| do | |
| echo "$i" | |
| openssl x509 -subject -issuer -enddate -noout -in $i \ | |
| | sed -e 's#, \([^ ]\+\) = #/\1=#g' -e 's,^\(subject\|issuer\)=\([^ ]\+\) = ,\1= /\2=,g' | |
| echo "--------" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.