...

Text file src/github.com/letsencrypt/boulder/linter/lints/test/README.md

Documentation: github.com/letsencrypt/boulder/linter/lints/test

     1# Test Lint CRLs
     2
     3The contents of this directory are a variety of PEM-encoded CRLs uses to test
     4the CRL linting functions in the parent directory.
     5
     6To create a new test CRL to exercise a new lint:
     7
     81. Install the `der2text` and `text2der` tools:
     9
    10   ```sh
    11   $ go install github.com/syncsynchalt/der2text/cmds/text2der@latest
    12   $ go install github.com/syncsynchalt/der2text/cmds/der2text@latest
    13   ```
    14
    152. Use `der2text` to create an editable version of CRL you want to start with, usually `crl_good.pem`:
    16  
    17   ```sh
    18   $ der2text crl_good.pem > my_new_crl.txt
    19   ```
    20
    213. Edit the text file. See [the der2text readme](https://github.com/syncsynchalt/der2text) for details about the file format.
    22
    234. 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.
    24
    25   ```sh
    26   $ text2der my_new_crl.txt >| my_new_crl.pem
    27   $ go test ..
    28   ```
    29
    305. Remove the text file and commit your new CRL.
    31
    32   ```sh
    33   $ rm my_new_crl.txt
    34   $ git add .
    35   ```

View as plain text