]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
More forgiving way of making CA depend on index && serial
authorAlan T. DeKok <aland@freeradius.org>
Wed, 23 Jan 2013 20:08:34 +0000 (15:08 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 23 Jan 2013 20:10:04 +0000 (15:10 -0500)
If they don't exist, we create them.
If they do exist, we don't care if they changed.

raddb/certs/Makefile

index cfd31cd3a8b4085fc670b2a21a4eb82b1bc6c3fc..5acea0e0c6182963cb549bb091a5e2308b810b20 100644 (file)
@@ -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