#!/bin/sh

NICK=$1

if [ $IRCNICK ] 
then
  NICK=$IRCNICK;
else
  if [ $LOGNAME ]
  then
    NICK=$LOGNAME;
  else
    if [ $USER ]
    then
      NICK=$USER
    fi
  fi 
fi
echo "Making keys."
echo "Putting secret key in file 'secret' and"
echo "public key in file '$NICK'"
echo "This takes a while.  Putting the job in the background."
 (genrsa 2>../LOG; mv public ../$NICK; mv secret ..; echo "Done making keys" ) &

