Changeset e376ed8 in mod_gnutls for test/test_ca.mk
- Timestamp:
- Nov 29, 2019, 4:30:08 PM (15 months ago)
- Branches:
- asyncio, master, proxy-ticket
- Children:
- 618ee14
- Parents:
- d4c9331 (diff), 556783e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/test_ca.mk
rd4c9331 re376ed8 10 10 @mkdir -m 0700 -p $(@D) 11 11 sed s/__HOSTNAME__/$(TEST_HOST)/ < $< > $@ 12 sed -i -e "s,__OCSP_URI__,$(OCSP_URI_TEMPLATE) ," $@12 sed -i -e "s,__OCSP_URI__,$(OCSP_URI_TEMPLATE)$(dir $(*))," $@ 13 13 for i in $(patsubst [%],%,$(TEST_IP)); do \ 14 14 IP_ADDRS="$${IP_ADDRS}\nip_address = $${i}"; \ … … 58 58 # special rule for root CAs 59 59 root_cert_rule = certtool --outfile $@ --generate-self-signed --load-privkey $(dir $@)secret.key --template $< 60 root_chain_rule = cp $< $@ 60 61 authority/x509.pem rogueca/x509.pem: %/x509.pem: %/template %/secret.key 61 62 $(root_cert_rule) 63 authority/x509-chain.pem rogueca/x509-chain.pem: %/x509-chain.pem: %/x509.pem 64 $(root_chain_rule) 62 65 63 66 # generic rule for building non-root certificates, with the CA in the 64 67 # parent directory 65 68 cert_rule = certtool --outfile $@ --generate-certificate --load-ca-certificate $(dir $@)../x509.pem --load-ca-privkey $(dir $@)../secret.key --load-privkey $(dir $@)secret.key --template $< 69 chain_rule = cat $< $(dir $@)../x509-chain.pem > $@ 66 70 67 71 # certificates signed by the test root CA 68 72 %/x509.pem: %/template %/secret.key authority/secret.key authority/x509.pem 69 73 $(cert_rule) 74 %/x509-chain.pem: %/x509.pem authority/x509-chain.pem 75 $(chain_rule) 76 77 # certificates signed by the test sub CA 78 authority/subca/%/x509.pem: authority/subca/%/template authority/subca/%/secret.key authority/subca/x509.pem 79 $(cert_rule) 80 authority/subca/%/x509-chain.pem: authority/subca/%/x509.pem authority/subca/x509-chain.pem 81 $(chain_rule) 70 82 71 83 # certificates signed by rogue CA (for error cases)
Note: See TracChangeset
for help on using the changeset viewer.