Changeset b712429 in mod_gnutls


Ignore:
Timestamp:
Jul 15, 2019, 2:45:30 AM (16 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master, proxy-ticket
Children:
6dab61d
Parents:
e8498bf
Message:

Test suite: Unify rules for X.509 root certificate generation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test_ca.mk

    re8498bf rb712429  
    5757
    5858# special cases for the authorities' root certs:
    59 authority/x509.pem: authority/template authority/secret.key
    60         certtool --outfile $@ --generate-self-signed --load-privkey authority/secret.key --template authority/template
    61 rogueca/x509.pem: $(srcdir)/rogueca/template rogueca/secret.key
    62         certtool --outfile $@ --generate-self-signed --load-privkey rogueca/secret.key --template $(srcdir)/rogueca/template
     59root_cert_rule = certtool --outfile $@ --generate-self-signed --load-privkey $(dir $@)secret.key --template $<
     60authority/x509.pem rogueca/x509.pem: %/x509.pem: %/template %/secret.key
     61        $(root_cert_rule)
    6362
    6463# normal case: certificates signed by test CA
     64cert_rule = certtool --outfile $@ --generate-certificate --load-ca-certificate $(dir $@)../x509.pem --load-ca-privkey $(dir $@)../secret.key --load-privkey $(dir $@)secret.key --template $<
     65
    6566%/x509.pem: %/template %/secret.key authority/secret.key authority/x509.pem
    66         certtool --outfile $@ --generate-certificate --load-ca-certificate authority/x509.pem --load-ca-privkey authority/secret.key --load-privkey $(dir $@)secret.key --template $<
     67        $(cert_rule)
    6768
    6869# error case: certificates signed by rogue CA
Note: See TracChangeset for help on using the changeset viewer.