-if [ -z "$filename" ]; then
- echo This script needs a base portion for the certificate filename to create.
+cert_alias="$1"; shift
+if [ -z "$filename" -o -z "$cert_alias" ]; then
+ echo "This script needs a base portion for the certificate filename to create"
+ echo "and the alias (or short name) for the certificate."