Skip to content

Commit

Permalink
update pkcs11 docs with cert ignore instructions
Browse files Browse the repository at this point in the history
Signed-off-by: Dylan Richardson <dylan.richardson@mongodb.com>
  • Loading branch information
drichmdb authored Nov 2, 2023
1 parent 501f84f commit faa6b08
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions content/en/signing/pkcs11.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,10 @@ The following checks were performed on each of these signatures:

[{"critical":{"identity":{"docker-reference":"gcr.io/dlorenc-vmtest2/demo"},"image":{"docker-manifest-digest":"sha256:410a07f17151ffffb513f942a01748dfdb921de915ea6427d61d60b0357c1dcd"},"type":"cosign container image signature"},"optional":null}]
```

If your PKCS11 key has an associated x509 certificate, `cosign` will attach the certificate to your signature by default. If you would like `cosign` to ignore these certificates and not attach them, you can set the `COSIGN_PKCS11_IGNORE_CERTIFICATE` environment variable to `1`:

```shell
$ COSIGN_PKCS11_IGNORE_CERTIFICATE=1 cosign sign --key "<PKCS11_URI>" $IMAGE_DIGEST
Pushing signature to: gcr.io/vmtest2/demo:sha256-410a07f17151ffffb513f942a01748dfdb921de915ea6427d61d60b0357c1dcd.sig
```

0 comments on commit faa6b08

Please sign in to comment.