Changeset 147:de0f9f43d659 in freeDiameter for contrib
- Timestamp:
- Dec 22, 2009, 1:49:54 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- contrib/ca_script2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/ca_script2/Makefile
r146 r147 103 103 @cat $(DATA_DIR)/$(ca)/public/cachain.pem $(DATA_DIR)/$(name)/public/cacert.pem > $(DATA_DIR)/$(name)/public/cachain.pem 104 104 @ln -s ../../$(ca)/public/caroot.pem $(DATA_DIR)/$(name)/public/caroot.pem 105 @for CRL in `cd $(DATA_DIR)/$(ca)/public/crl && ls -1`; do ln -sf ../../../$(ca)/public/crl/$(CRL) $(DATA_DIR)/$(name)/public/crl/$(CRL); done105 @for CRLFILE in `cd $(DATA_DIR)/$(ca)/public/crl && ls -1`; do ln -sf ../../../$(ca)/public/crl/$(CRLFILE) $(DATA_DIR)/$(name)/public/crl/$(CRLFILE); done 106 106 @$(REMAKE) gencrl ca=$(name) 107 107 … … 149 149 gencrl: 150 150 @if [ -z "$(ca)" ]; then echo "Missing parameter. Ex: make gencrl ca=ca.testbed.aaa"; exit 1; fi 151 # Create the CRL (keep the old one?) 151 # Create the CRL 152 @rm -f $(DATA_DIR)/$(ca)/public/crl/local.pem 152 153 @CA_ROOT_DIR=$(DATA_DIR)/$(ca) openssl ca $(CONFIG) -gencrl -out $(DATA_DIR)/$(ca)/public/crl/$(ca).pem 153 @ln -s crl.pem $(DATA_DIR)/$(ca)/public/`openssl crl -noout -hash < $(DATA_DIR)/$(ca)/public/crl/$(ca).pem`.r0 154 @ln -s $(ca).pem $(DATA_DIR)/$(ca)/public/crl/local.pem 155 @ln -s crl/$(ca).pem $(DATA_DIR)/$(ca)/public/`openssl crl -noout -hash < $(DATA_DIR)/$(ca)/public/crl/$(ca).pem`.r0 154 156 155 157 # End of file... -
contrib/ca_script2/openssl.cnf
r46 r147 61 61 dir = $ENV::CA_ROOT_DIR # Where everything is kept 62 62 certs = $dir/public # Where the issued certs are kept 63 crl_dir = $dir/public 63 crl_dir = $dir/public/crl # Where the issued crl are kept 64 64 database = $dir/index.txt # database index file. 65 65 #unique_subject = no # Set to 'no' to allow creation of … … 70 70 serial = $dir/serial # The current serial number 71 71 crlnumber = $dir/crlnumber # the current crl number 72 crl = $dir/public/crl .pem # The current CRL72 crl = $dir/public/crl/local.pem # The current CRL 73 73 private_key = $dir/private/cakey.pem # The private key 74 74 x509_extensions = usr_cert # The extentions to add to the cert
Note: See TracChangeset
for help on using the changeset viewer.