#!/bin/bash set -e if [ -z "$1" ]; then program=$(basename $0) echo "usage: $program " exit 1 fi name=$1 openssl req -nodes -new -x509 -keyout $name.key -out $name.crt