Changeset f828974 in mod_gnutls for test/test_ca.mk
- Timestamp:
- Jul 15, 2019, 3:26:28 PM (20 months ago)
- Branches:
- asyncio, master, proxy-ticket
- Children:
- 7cfc02b
- Parents:
- c3aebe5
- git-author:
- Fiona Klute <fiona.klute@…> (07/15/19 15:21:17)
- git-committer:
- Fiona Klute <fiona.klute@…> (07/15/19 15:26:28)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/test_ca.mk
rc3aebe5 rf828974 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) 70 76 71 77 # certificates signed by the test sub CA 72 78 authority/subca/%/x509.pem: authority/subca/%/template authority/subca/%/secret.key authority/subca/x509.pem 73 79 $(cert_rule) 80 authority/subca/%/x509-chain.pem: authority/subca/%/x509.pem authority/subca/x509-chain.pem 81 $(chain_rule) 74 82 75 83 # certificates signed by rogue CA (for error cases)
Note: See TracChangeset
for help on using the changeset viewer.