#!/bin/sh # # Author: Roumen Petrov, Sofia, Bulgaria # Version: 1.3, 2004-11-09 # # Placed in the Public Domain. # CANAME="$1" DERCRT="$2" ( echo echo ${CANAME} echo ${CANAME} | sed -e 's/./=/g' openssl x509 -inform DER -in "${DERCRT}" \ -fingerprint -noout ) && ( echo PEM data: openssl x509 -inform DER -in "${DERCRT}" ) && ( echo Certificate Ingredients: openssl x509 -inform DER -in "${DERCRT}" \ -text -noout )