Changeset f828974 in mod_gnutls
- 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)
- Location:
- test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
test/Makefile.am
rc3aebe5 rf828974 171 171 echo "unique_subject = no" > $@ 172 172 173 # build certificate chain file for server 174 check_DATA += authority/server/x509-chain.pem 175 MOSTLYCLEANFILES += authority/server/x509-chain.pem 176 %/x509-chain.pem: %/x509.pem authority/x509.pem 177 cat $< authority/x509.pem > $@ 173 # Build certificate chain files. Note that intermediate tokens must be 174 # listed explicitly, or the dependency chain will be broken because 175 # the higher level pattern matches, too. 176 chain_tokens = authority/server/x509-chain.pem \ 177 authority/subca/x509-chain.pem \ 178 authority/subca/server/x509-chain.pem 179 check_DATA += $(chain_tokens) 180 MOSTLYCLEANFILES += $(chain_tokens) 178 181 endif 179 182 -
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) -
test/tests/00_basic/apache.conf
rc3aebe5 rf828974 6 6 ServerName ${TEST_HOST} 7 7 GnuTLSEnable On 8 GnuTLSCertificateFile authority/s erver/x509.pem9 GnuTLSKeyFile authority/s erver/secret.key8 GnuTLSCertificateFile authority/subca/server/x509-chain.pem 9 GnuTLSKeyFile authority/subca/server/secret.key 10 10 </VirtualHost>
Note: See TracChangeset
for help on using the changeset viewer.