2013-10-16 20:25:42 +02:00
|
|
|
Index: freeradius-server-3.0.0/raddb/certs/Makefile
|
2009-10-21 00:16:10 +02:00
|
|
|
===================================================================
|
2013-10-16 20:25:42 +02:00
|
|
|
--- freeradius-server-3.0.0.orig/raddb/certs/Makefile 2013-10-15 18:20:43.563939081 +0200
|
|
|
|
+++ freeradius-server-3.0.0/raddb/certs/Makefile 2013-10-15 18:21:35.382475281 +0200
|
2009-10-21 00:16:10 +02:00
|
|
|
@@ -51,7 +51,7 @@ dh:
|
|
|
|
# Create a new self-signed CA certificate
|
|
|
|
#
|
|
|
|
######################################################################
|
2013-10-16 20:25:42 +02:00
|
|
|
-ca.key ca.pem: ca.cnf
|
|
|
|
+ca.key ca.pem:
|
|
|
|
@[ -f index.txt ] || $(MAKE) index.txt
|
|
|
|
@[ -f serial ] || $(MAKE) serial
|
2009-10-21 00:16:10 +02:00
|
|
|
openssl req -new -x509 -keyout ca.key -out ca.pem \
|
2013-10-16 20:25:42 +02:00
|
|
|
@@ -65,7 +65,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
|
2013-10-16 20:25:42 +02:00
|
|
|
@@ -87,7 +87,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
|
2013-10-16 20:25:42 +02:00
|
|
|
Index: freeradius-server-3.0.0/raddb/certs/bootstrap
|
2009-10-21 00:16:10 +02:00
|
|
|
===================================================================
|
2013-10-16 20:25:42 +02:00
|
|
|
--- freeradius-server-3.0.0.orig/raddb/certs/bootstrap 2013-10-15 18:20:43.563939081 +0200
|
|
|
|
+++ freeradius-server-3.0.0/raddb/certs/bootstrap 2013-10-15 18:20:45.669960874 +0200
|
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 *
|