aboutsummaryrefslogtreecommitdiff
path: root/easy-rsa/build-ca
blob: 5ad59cc5fd5716d980fabd5c93ffaaf0a83b5ec1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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