5 # Set this variable to the location of your SSL installation.
7 [ "$SSL" = "" ] && SSL=/usr/local/ssl
11 # Don't touch the following text.
13 [ -d certs ] && rm -rf certs
15 cp xpextensions certs/
19 # Generate DH stuff...
21 $(SSL)/bin/openssl gendh > dh
24 # /dev/urandom is not a file, and we can't rely on "test -e" working
27 if ls /dev/urandom >/dev/null 2>&1
29 dd if=/dev/urandom of=random count=2 >/dev/null 2>&1
31 echo "Please replace this text with 1k of random data" > random
35 ../CA.certs > CA.log 2>&1
38 echo " Certificate creation failed."
39 echo " Please see the 'CA.log' file for messages,"
40 echo " or read the 'CA.all' script, and run it by hand."
45 echo " See the 'certs' directory for the certificates."
46 echo " The 'certs' directory should be copied to .../etc/raddb/"
47 echo " All passwords have been set to 'whatever'"
48 rm -f CA.log xpextensions