#!/bin/sh

CANAME="$1"
PEMCRT="$2"
 
(
echo
echo ${CANAME}
echo ${CANAME} | sed -e 's/./=/g'
openssl x509 -inform PEM -in "${PEMCRT}" \
    -fingerprint -noout
) && (
  echo PEM data:
  openssl x509 -inform PEM -in "${PEMCRT}" \
    -trustout
) && (
  echo Certificate Ingredients: 
  openssl x509 -inform PEM -in "${PEMCRT}" \
    -text -noout
)

