mirror of
https://github.com/OpenVPN/openvpn.git
synced 2025-05-08 21:25:53 +08:00

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@581 e7ae566f-a301-0410-adde-c780ea21d3b5
14 lines
242 B
Bash
Executable File
14 lines
242 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#
|
|
# Build a root certificate
|
|
#
|
|
|
|
if test $KEY_DIR; then
|
|
cd $KEY_DIR && \
|
|
openssl req -days 3650 -nodes -new -x509 -keyout ca.key -out ca.crt -config $KEY_CONFIG && \
|
|
chmod 0600 ca.key
|
|
else
|
|
echo you must define KEY_DIR
|
|
fi
|