SOURCES: partimaged.init - chown for key
arekm
arekm at pld-linux.org
Thu Apr 10 13:36:34 CEST 2008
Author: arekm Date: Thu Apr 10 11:36:34 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- chown for key
---- Files affected:
SOURCES:
partimaged.init (1.10 -> 1.11)
---- Diffs:
================================================================
Index: SOURCES/partimaged.init
diff -u SOURCES/partimaged.init:1.10 SOURCES/partimaged.init:1.11
--- SOURCES/partimaged.init:1.10 Thu Apr 10 13:31:33 2008
+++ SOURCES/partimaged.init Thu Apr 10 13:36:29 2008
@@ -35,11 +35,14 @@
case "$1" in
init)
echo "Generating private key: /etc/partimaged/partimaged.key"
- openssl genrsa -out /etc/partimaged/partimaged.key 1024 && chmod 600 /etc/partimaged/partimaged.key
+ openssl genrsa -out /etc/partimaged/partimaged.key 1024 \
+ && chown partimag:root /etc/partimaged/partimaged.key \
+ && chmod 600 /etc/partimaged/partimaged.key
echo "Generating certificate request: /etc/partimaged/partimaged.csr"
openssl req -new -x509 -outform PEM -out /etc/partimaged/partimaged.csr \
- -key /etc/partimaged/partimaged.key -config /etc/partimaged/partimaged.cnf
+ -key /etc/partimaged/partimaged.key -config /etc/partimaged/partimaged.cnf \
+ chmod 600 /etc/partimaged/partimaged.csr
echo "Generating self-signed certificate: /etc/partimaged/partimaged.cert"
openssl x509 -in /etc/partimaged/partimaged.csr -out /etc/partimaged/partimaged.cert \
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/partimaged.init?r1=1.10&r2=1.11&f=u
More information about the pld-cvs-commit
mailing list