Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Petrovich authored and rlz committed Nov 29, 2011
1 parent 1273ed1 commit 68c966d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nova/CA/geninter.sh
Expand Up @@ -33,7 +33,7 @@ touch index.txt
# openssl req -new -sha256 -key private/cakey.pem -out ../../reqs/inter$NAME.csr -batch -subj "$SUBJ"
openssl ca -gencrl -config ./openssl.cnf -out crl.pem
if [ "`id -u`" != "`grep nova /etc/passwd | cut -d':' -f3`" ]; then
sudo chown -R nova:nogroup .
sudo chown -R nova:body .
fi
# cd ../../
# openssl ca -extensions v3_ca -days 365 -out INTER/$NAME/cacert.pem -in reqs/inter$NAME.csr -config openssl.cnf -batch
6 changes: 3 additions & 3 deletions nova/CA/genvpn.sh
Expand Up @@ -21,8 +21,8 @@
NAME=$1
SUBJ=$2

mkdir -p projects/$NAME
cd projects/$NAME
#mkdir -p projects/$NAME
#cd projects/$NAME

# generate a server priv key
openssl genrsa -out server.key 2048
Expand All @@ -32,5 +32,5 @@ openssl req -new -key server.key -out server.csr -batch -subj "$SUBJ"

novauid=`getent passwd nova | awk -F: '{print $3}'`
if [ ! -z "${novauid}" ] && [ "`id -u`" != "${novauid}" ]; then
sudo chown -R nova:nogroup .
sudo chown -R nova:nobody .
fi

0 comments on commit 68c966d

Please sign in to comment.