svn cleanup
[anytun.git] / openvpn / easy-rsa / sign-req
blob59edc42a3711530cd12a1f223fb14b3f68ff2ada
1 #!/bin/sh
4 # Sign a certificate signing request (a .csr file)
5 # with a local root certificate and key.
8 if test $# -ne 1; then
9 echo "usage: sign-req <name>";
10 exit 1
11 fi
13 if test $KEY_DIR; then
14 cd $KEY_DIR && \
15 openssl ca -days 3650 -out $1.crt -in $1.csr -config $KEY_CONFIG
16 else
17 echo you must define KEY_DIR