rm -f /tmp/vpn-mk-client-cert.log
exec 2>/tmp/vpn-mk-client-cert.log
+date >&2
+
name=$1
common_name=$2
### end section roughly copied from vpn-server-setup
if [[ ! -e $cafile ]]; then
- echo: error no cafile found at $cafile >/tmp/errors
+ echo error: no cafile found at $cafile >/tmp/errors
exit 1
fi