4 # Make a certificate/private key pair using a locally generated
7 # Explicitly set nsCertType to server using the "server"
8 # extension in the openssl.cnf file.
10 if test $# -ne 1; then
11 echo "usage: build-key-server <name>";
15 if test $KEY_DIR; then
17 openssl req
-days 3650 -nodes -new -keyout $1.key
-out $1.csr
-extensions server
-config $KEY_CONFIG && \
18 openssl ca
-days 3650 -out $1.crt
-in $1.csr
-extensions server
-config $KEY_CONFIG && \
21 echo you must define KEY_DIR