Initial commit
This commit is contained in:
13
ANW-URB/openvpn/easy-rsa/1.0/build-ca
Executable file
13
ANW-URB/openvpn/easy-rsa/1.0/build-ca
Executable file
@ -0,0 +1,13 @@
|
||||
#!/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
|
Reference in New Issue
Block a user