1*ebfedea0SLionel Sambuc#!/bin/sh 2*ebfedea0SLionel Sambuc# 3*ebfedea0SLionel Sambuc# print the subject 4*ebfedea0SLionel Sambuc# 5*ebfedea0SLionel Sambuc 6*ebfedea0SLionel Sambucfor i in $* 7*ebfedea0SLionel Sambucdo 8*ebfedea0SLionel Sambuc n=`openssl x509 -subject -issuer -enddate -noout -in $i` 9*ebfedea0SLionel Sambuc echo "$i" 10*ebfedea0SLionel Sambuc echo "$n" 11*ebfedea0SLionel Sambuc echo "--------" 12*ebfedea0SLionel Sambucdone 13