#! /bin/sh openssl pkcs7 -inform DER -outform PEM -in $1.p7b -print_certs > $1.certchain