projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9440578
)
More forgiving way of making CA depend on index && serial
author
Alan T. DeKok
<aland@freeradius.org>
Wed, 23 Jan 2013 20:08:34 +0000
(15:08 -0500)
committer
Alan T. DeKok
<aland@freeradius.org>
Wed, 23 Jan 2013 20:28:16 +0000
(15:28 -0500)
If they don't exist, we create them.
If they do exist, we don't care if they changed.
raddb/certs/Makefile
patch
|
blob
|
history
diff --git
a/raddb/certs/Makefile
b/raddb/certs/Makefile
index
b7d5c70
..
51667f9
100644
(file)
--- a/
raddb/certs/Makefile
+++ b/
raddb/certs/Makefile
@@
-51,7
+51,9
@@
dh:
# Create a new self-signed CA certificate
#
######################################################################
-ca.key ca.pem: ca.cnf index.txt serial
+ca.key ca.pem: ca.cnf
+ @[ -f index.txt ] || $(MAKE) index.txt
+ @[ -f serial ] || $(MAKE) serial
openssl req -new -x509 -keyout ca.key -out ca.pem \
-days $(CA_DEFAULT_DAYS) -config ./ca.cnf