2012-09-11 11:31:52 +02:00
|
|
|
Index: freeradius-server-2.2.0/raddb/certs/Makefile
|
2009-10-21 00:16:10 +02:00
|
|
|
===================================================================
|
2012-09-11 11:31:52 +02:00
|
|
|
--- freeradius-server-2.2.0.orig/raddb/certs/Makefile 2012-09-10 13:51:34.000000000 +0200
|
|
|
|
+++ freeradius-server-2.2.0/raddb/certs/Makefile 2012-09-10 15:46:54.505208498 +0200
|
2009-10-21 00:16:10 +02:00
|
|
|
@@ -51,7 +51,7 @@ dh:
|
|
|
|
# Create a new self-signed CA certificate
|
|
|
|
#
|
|
|
|
######################################################################
|
2012-09-11 11:31:52 +02:00
|
|
|
-ca.key ca.pem: ca.cnf index.txt serial
|
|
|
|
+ca.key ca.pem: index.txt serial
|
2009-10-21 00:16:10 +02:00
|
|
|
openssl req -new -x509 -keyout ca.key -out ca.pem \
|
|
|
|
-days $(CA_DEFAULT_DAYS) -config ./ca.cnf
|
2010-03-11 01:38:48 +01:00
|
|
|
|
|
|
|
@@ -63,7 +63,7 @@ ca.der: ca.pem
|
2009-10-21 00:16:10 +02:00
|
|
|
# Create a new server certificate, signed by the above CA.
|
|
|
|
#
|
|
|
|
######################################################################
|
|
|
|
-server.csr server.key: server.cnf
|
|
|
|
+server.csr server.key:
|
|
|
|
openssl req -new -out server.csr -keyout server.key -config ./server.cnf
|
|
|
|
|
2011-05-26 17:24:56 +02:00
|
|
|
server.crt: server.csr ca.key ca.pem
|
2010-03-11 01:38:48 +01:00
|
|
|
@@ -85,7 +85,7 @@ server.vrfy: ca.pem
|
2009-10-21 00:16:10 +02:00
|
|
|
# certificate.
|
|
|
|
#
|
|
|
|
######################################################################
|
|
|
|
-client.csr client.key: client.cnf
|
|
|
|
+client.csr client.key:
|
|
|
|
openssl req -new -out client.csr -keyout client.key -config ./client.cnf
|
|
|
|
|
2011-05-26 17:24:56 +02:00
|
|
|
client.crt: client.csr ca.pem ca.key
|
2012-09-11 11:31:52 +02:00
|
|
|
Index: freeradius-server-2.2.0/raddb/certs/bootstrap
|
2009-10-21 00:16:10 +02:00
|
|
|
===================================================================
|
2012-09-11 11:31:52 +02:00
|
|
|
--- freeradius-server-2.2.0.orig/raddb/certs/bootstrap 2012-09-10 13:51:34.000000000 +0200
|
|
|
|
+++ freeradius-server-2.2.0/raddb/certs/bootstrap 2012-11-10 15:34:07.926849849 +0100
|
2011-05-26 17:24:56 +02:00
|
|
|
@@ -21,7 +21,9 @@ make -h > /dev/null 2>&1
|
2009-10-21 00:16:10 +02:00
|
|
|
#
|
2011-05-26 17:24:56 +02:00
|
|
|
if [ "$?" = "0" ]; then
|
|
|
|
make all
|
|
|
|
- exit $?
|
|
|
|
+ ret=$?
|
2009-10-21 00:16:10 +02:00
|
|
|
+ chgrp radiusd *
|
2011-05-26 17:24:56 +02:00
|
|
|
+ exit $ret
|
2009-10-21 00:16:10 +02:00
|
|
|
fi
|
|
|
|
|
2011-05-26 17:24:56 +02:00
|
|
|
#
|
2012-09-11 11:31:52 +02:00
|
|
|
@@ -80,3 +82,5 @@ fi
|
2011-05-26 17:24:56 +02:00
|
|
|
if [ ! -f client.crt ]; then
|
|
|
|
openssl ca -batch -keyfile ca.key -cert ca.pem -in client.csr -key `grep output_password ca.cnf | sed 's/.*=//;s/^ *//'` -out client.crt -extensions xpclient_ext -extfile xpextensions -config ./client.cnf
|
|
|
|
fi
|
|
|
|
+
|
2009-10-21 00:16:10 +02:00
|
|
|
+chgrp radiusd *
|