Changeset 870:54c4d3e840ff in freeDiameter for contrib/PKI
- Timestamp:
- Oct 23, 2012, 10:50:01 PM (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- contrib/PKI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/PKI/ca_script/Makefile
r740 r870 3 3 # This file is designed to automatize the CA tasks such as: 4 4 # -> init : create the initial CA tree and the CA root certificate. 5 # -> newcsr: create a new private key and csr. $name and $email must be set. C, ST, L, O, OU may be overwitten (ex emple: make newcsr C=FR)5 # -> newcsr: create a new private key and csr. $name and $email must be set. C, ST, L, O, OU may be overwitten (example: make newcsr C=FR) 6 6 # -> cert : sign a pending CSR and generate the certificate. $name must be provided. 7 7 # -> revoke: revoke a certificate. $name must be provided. … … 70 70 A cron job should execute make gencrl once a month.\n\ 71 71 "; 72 73 # Destroy the CA complet ly. Use with care.72 73 # Destroy the CA completely. Use with care. 74 74 destroy: 75 75 @if [ -z "$(force)" ]; then echo "Restart disabled, use: make destroy force=y"; exit 1; fi … … 79 79 @ln -sf $(STATIC_DIR)/Makefile $(DIR) 80 80 @ln -sf $(STATIC_DIR)/openssl.cnf $(DIR) 81 82 81 83 82 # Initialize the CA structure and keys. … … 147 146 @rm -f $(DIR)/certs/`openssl x509 -noout -hash < $(DIR)/clients/certs/$(name).cert`.0 148 147 @$(MAKE) gencrl 149 148 150 149 # End of file... -
contrib/PKI/ca_script2/Makefile
r394 r870 44 44 \n\ 45 45 "; 46 47 # Destroy the CA hierarchy complet ly. Use with care.46 47 # Destroy the CA hierarchy completely. Use with care. 48 48 destroy: 49 49 @if [ -z "$(force)" ]; then echo "Destroy disabled, use: make destroy force=y"; exit 1; fi … … 66 66 @echo "01" > $(DATA_DIR)/$(caname)/crlnumber 67 67 @touch $(DATA_DIR)/$(caname)/index.txt 68 68 69 69 # Initialize the top-level CA structure and keys. 70 70 init: … … 167 167 @CA_ROOT_DIR=$(DATA_DIR)/$(ca) openssl ca $(CONFIG) -revoke $(DATA_DIR)/$(ca)/clients/$(name)/cert.pem; 168 168 @$(REMAKE) gencrl ca=$(ca) 169 169 170 170 # Regenerate the Certificate Revocation List. 171 171 gencrl:
Note: See TracChangeset
for help on using the changeset viewer.