Browse Source

Prevent running keys.sh with no params

tags/v1.0
Matt Baer 8 years ago
parent
commit
526891d9db
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      keys.sh

+ 5
- 0
keys.sh View File

@@ -4,6 +4,11 @@
# Utility script for generating a private/public key pair
#

if [[ -z "$1" ]]; then
echo "usage: ./keys.sh [key_basename]"
exit 1
fi

mkdir keys

openssl genrsa -out keys/$1 2048


Loading…
Cancel
Save