-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- adds import key pair docs - amends position of sign and verify pages so that import key pair and generate key pair are next to each other in menu bar Signed-off-by: ChrisJBurns <29541485+ChrisJBurns@users.noreply.github.com> Signed-off-by: ChrisJBurns <29541485+ChrisJBurns@users.noreply.github.com>
- Loading branch information
1 parent
ce6f7c2
commit 0b2f28f
Showing
3 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
title: "Importing Key Pairs" | ||
category: "Cosign" | ||
position: 104 | ||
--- | ||
|
||
> Currently only supports RSA and ECDSA private keys | ||
### Import a Key Pair | ||
|
||
The importing of a key pair with `cosign` is as follows. | ||
|
||
```shell | ||
$ cosign import-key-pair --key opensslrsakey.pem | ||
Enter password for private key: | ||
Enter password for private key again: | ||
Private key written to import-cosign.key | ||
Public key written to import-cosign.pub | ||
``` | ||
|
||
### Sign a container with imported keypair | ||
|
||
The use of the imported key pair to sign an artifact with `cosign` is as follows. | ||
|
||
```shell | ||
$ cosign sign --key import-cosign.key $IMAGE_DIGEST | ||
Enter password for private key: | ||
tlog entry created with index: ***** | ||
Pushing signature to: ***** | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters