#!/bin/sh # This script should be invoked from cert # It expects "$PROGRAMATICA", "$SERVERDIR" and "$certsDir" to be set [ -n "$PROGRAMATICA" ] || { echo >&2 'Bug: $PROGRAMATICA is not set'; exit 1;} . "$PROGRAMATICA/functions.sh" [ -n "$certsDir" ] || abort 'Bug: $certsDir is not set' type=Mono usage() { abort "Usage: cert new $type []"; } createcert() { mkdir -p "$1" cat >"$1/cert.attr" <