tree: 5d749e2baecd772e4613ac1445cf2f94b9361e02
  1. generate_leaf.go
  2. generate_mtcs.sh
  3. leaf.pem
  4. mtc-config.json
  5. mtc-ica.pem
  6. mtc-leaf-standalone-3cosigners.pem
  7. mtc-leaf-standalone-cosigner_wrong_order.pem
  8. mtc-leaf-standalone-duplicate_ca_signer.pem
  9. mtc-leaf-standalone-no_ca_signer.pem
  10. mtc-leaf-standalone.pem
  11. mtc-leaf.pem
  12. README.md
pki/testdata/path_builder_unittest/mtc_plants04/README.md

MTC test certs

This directory contains the following certs:

  • mtc-leaf.pem
    • signatureless MTC issued by an MTC CA
  • mtc-leaf-standalone.pem
    • standalone MTC issued by an MTC CA
  • mtc-leaf-standalone-3cosigners.pem
    • standalone MTC containing the CA cosignature and two other cosignatures.
  • mtc-leaf-standalone-no_ca_signers.pem
    • MTC containing one cosignature, but no CA cosignature.
  • mtc-leaf-standalone-duplicate_ca_signer.pem
    • standalone MTC containing two duplicate CA cosignatures.
  • mtc-leaf-standalone-cosigner_wrong_order.pem
    • standalone MTC containing the CA cosignature and another cosignatures, but the cosignatures are not in sorted order.
  • mtc-ica.pem
    • signatureless MTC issued by the same MTC CA
    • its BasicConstraints has cA=TRUE
  • leaf.pem
    • classical ECDSA cert (SPKI) with ECDSA signatureAlgorithm
    • issued by mtc-ica.pem

(Re)generating test certs

Generating these certs is done in two steps.

The first step is to generate a keypair for the ICA and use the private key to sign the leaf cert:

  1. Run go run generate_leaf.go
  2. Copy the certificate PEM to leaf.pem
  3. Copy the ICA SPKI base64 to the first PublicKey entry in mtc-config.json

The next step is to generate the MTCs:

  1. Run generate_mtcs.sh
  2. Copy the subtree range and hash from the script output into PathBuilderMTCPlants04Test::SetUp.