#! /bin/sh # # Generate agent.pem # # Copyright (C) 2007 Nokia Corporation # # Author: Pekka Pessi # Based on Mikko Haataja's perl script # CN='C=FI, L=Helsinki, O=sofia-sip, CN=tport test' ALTNAME=DNS:tport-test.sofia-sip.org #ALTNAME=URI:sips:tport-test.sofia-sip.org DAYS=730 umask 077 T=${TMPDIR:-/tmp}/sofia-sip-certs-${USER}-$$-`date +%N` CA=${T}/CA mkdir $T || exit 1 mkdir $T/CA || exit 1 cat > $CA/cakey.pem < $CA/cacert.pem < $T/a.cnf <