#! /bin/sh # @(#)(CAcert) $Id: make-ocspd-csr,v 1.1 2011/04/28 15:46:41 wytze Exp $ # make-ocspd-csr - create new csr for ocsp responder, and optionally a new key HOST=ocsp TMP=/tmp/openssl.cnf.$$ trap "rm -f ${TMP}" 0 1 2 3 15 DIR=/usr/local/etc/ocspd KEY=${DIR}/private/class1.key CSR=${DIR}/private/${HOST}.csr CRT1=${DIR}/certs/class1.crt CRT2=${DIR}/certs/class3.crt CNF=${TMP} umask 077 mkdir -p ${DIR} ${DIR}/private ${DIR}/certs echo -e "#1. Creating openssl config file in ${CNF}\n" cat >${CNF} <