tree: cfc1564737d9410760f56870b904bb25192368e1 [search]
  1. aia.pem
  2. aki_name_and_serial.pem
  3. cert_issuer.pem
  4. critical_number.pem
  5. critical_reason.pem
  6. delta.pem
  7. empty_revoked.pem
  8. freshest.pem
  9. gentime_2049.pem
  10. gentime_revoked_2049.pem
  11. good.pem
  12. good_gentime_2050.pem
  13. good_old.pem
  14. good_utctime_1950.pem
  15. idp.pem
  16. idp_no_uri.pem
  17. idp_no_usercerts.pem
  18. idp_some_reasons.pem
  19. idp_two_uris.pem
  20. long_number.pem
  21. long_validity.pem
  22. negative_validity.pem
  23. no_aki.pem
  24. no_idp.pem
  25. no_issuer_name.pem
  26. no_next_update.pem
  27. no_number.pem
  28. none_revoked.pem
  29. README.md
  30. reason_0.pem
  31. reason_1.pem
  32. reason_10.pem
  33. reason_2.pem
  34. reason_3.pem
  35. reason_4.pem
  36. reason_5.pem
  37. reason_6.pem
  38. reason_8.pem
  39. reason_9.pem
  40. utctime_no_seconds.pem
linter/lints/crl/testdata/README.md

Test Lint CRLs

The contents of this directory are a variety of PEM-encoded CRLs uses to test the CRL linting functions in the parent directory.

To create a new test CRL to exercise a new lint:

  1. Install the der2text and text2der tools:

    $ go install github.com/syncsynchalt/der2text/cmds/text2der@latest
    $ go install github.com/syncsynchalt/der2text/cmds/der2text@latest
    
  2. Use der2text to create an editable version of CRL you want to start with, usually good.pem:

    $ der2text good.pem > my_new_crl.txt
    
  3. Edit the text file. See the der2text readme for details about the file format.

  4. Write the new PEM file and run the tests to see if it works! Repeat steps 3 and 4 as necessary until you get the correct result.

    $ text2der my_new_crl.txt >| my_new_crl.pem
    $ go test ..
    
  5. Remove the text file and commit your new CRL.

    $ rm my_new_crl.txt
    $ git add .