diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-12 03:15:34 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-12 03:15:34 +0000 |
commit | 4b8ae64d89340b79b794a7fc637d54280b8848e8 (patch) | |
tree | a74886d58aff3e96df8e14dfc1a935e7571a4e97 /astgenkey | |
parent | 6693b33ccf2aaeb89d606dff2685d364055d024f (diff) |
Move more scripts
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1966 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'astgenkey')
-rwxr-xr-x | astgenkey | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/astgenkey b/astgenkey deleted file mode 100755 index 31873e88d..000000000 --- a/astgenkey +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh -# -# Usage: astgenkey [ -q ] [keyname] -# -if [ "$1" = "-q" ]; then - QUIET='y' - KEY=$2 -else - KEY=$1 -fi - -if [ "$QUIET" != 'y' ]; then - echo "" - echo "This script generates an RSA private and public key pair" - echo "in PEM format for use by Asterisk. You will be asked to" - echo "enter a passcode for your key multiple times. Please" - echo "enter the same code each time. The resulting files will" - echo "need to be moved to /var/lib/asterisk/keys if you want" - echo "to use them, and any private keys (.key files) will" - echo "need to be initialized at runtime either by running" - echo "Asterisk with the '-i' option, or with the 'init keys'" - echo "command once Asterisk is running." - echo "" - echo "Press ENTER to continue or ^C to cancel." - read BLAH -fi - -while [ "$KEY" = "" ]; do - echo -n "Enter key name: " - read KEY -done - -rm -f ${KEY}.key ${KEY}.pub - -echo "Generating SSL key '$KEY': " -openssl genrsa -out ${KEY}.key -des3 1024 -openssl rsa -in ${KEY}.key -pubout -out ${KEY}.pub - -if [ -f "${KEY}.key" ] && [ -f "${KEY}.pub" ]; then - if [ "$QUIET" != 'y' ]; then - echo "Key creation successful." - echo "Public key: ${KEY}.pub" - echo "Private key: ${KEY}.key" - fi -else - echo "Unknown error creating keys." -fi |