github.com/sigstore/cosign@v1.13.6/test/testdata/README.md (about)

     1  # Generate Certificate
     2  
     3  If the `test/testdata/test_blob_cert.pem` expire you can generate a new certificate to use in the tests running the
     4  following command:
     5  
     6  ```shell
     7  $ openssl req -key test/testdata/test_blob_private_key -x509 -days 3650 -out cert.pem -new -nodes
     8  
     9  You are about to be asked to enter information that will be incorporated
    10  into your certificate request.
    11  What you are about to enter is what is called a Distinguished Name or a DN.
    12  There are quite a few fields but you can leave some blank
    13  For some fields there will be a default value,
    14  If you enter '.', the field will be left blank.
    15  -----
    16  Country Name (2 letter code) []:US
    17  State or Province Name (full name) []:CA
    18  Locality Name (eg, city) []:SF
    19  Organization Name (eg, company) []:Company
    20  Organizational Unit Name (eg, section) []:Unit
    21  Common Name (eg, fully qualified host name) []:www.example.org
    22  Email Address []:email@email.com
    23  ```
    24  
    25  and then you replace the old `test/testdata/test_blob_cert.pem` with the new certificate.
    26