4 # Similar to build-key, but protect the private key
9 echo "usage: build-key-pass <name>";
13 if test $KEY_DIR; then
15 openssl req
-days 3650 -new -keyout $1.key
-out $1.csr
-config $KEY_CONFIG && \
16 openssl ca
-days 3650 -out $1.crt
-in $1.csr
-config $KEY_CONFIG && \
19 echo you must define KEY_DIR