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