1: #!/bin/sh 2: # 3: # print the subject 4: # 5: 6: for i in $* 7: do 8: n=`openssl x509 -subject -issuer -enddate -noout -in $i` 9: echo "$i" 10: echo "$n" 11: echo "--------" 12: done