Navigation


Changeset 147:de0f9f43d659 in freeDiameter for contrib


Ignore:
Timestamp:
Dec 22, 2009, 1:49:54 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Fix, bis

Location:
contrib/ca_script2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • contrib/ca_script2/Makefile

    r146 r147  
    103103        @cat $(DATA_DIR)/$(ca)/public/cachain.pem $(DATA_DIR)/$(name)/public/cacert.pem > $(DATA_DIR)/$(name)/public/cachain.pem
    104104        @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); done
     105        @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
    106106        @$(REMAKE) gencrl ca=$(name)
    107107
     
    149149gencrl:
    150150        @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
    152153        @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
    154156
    155157# End of file...
  • contrib/ca_script2/openssl.cnf

    r46 r147  
    6161dir             = $ENV::CA_ROOT_DIR     # Where everything is kept
    6262certs           = $dir/public           # Where the issued certs are kept
    63 crl_dir         = $dir/public           # Where the issued crl are kept
     63crl_dir         = $dir/public/crl       # Where the issued crl are kept
    6464database        = $dir/index.txt        # database index file.
    6565#unique_subject = no                    # Set to 'no' to allow creation of
     
    7070serial          = $dir/serial           # The current serial number
    7171crlnumber       = $dir/crlnumber        # the current crl number
    72 crl             = $dir/public/crl.pem           # The current CRL
     72crl             = $dir/public/crl/local.pem             # The current CRL
    7373private_key     = $dir/private/cakey.pem        # The private key
    7474x509_extensions = usr_cert              # The extentions to add to the cert
Note: See TracChangeset for help on using the changeset viewer.