Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Import Key Pair Docs #54

Merged
merged 1 commit into from
Jan 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions content/en/cosign/import-keypair.md
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: *****
```
2 changes: 1 addition & 1 deletion content/en/cosign/sign.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Signing"
category: "Cosign"
position: 104
position: 105
---

The general signing format with the `cosign sign` command is as follows.
Expand Down
2 changes: 1 addition & 1 deletion content/en/cosign/verify.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Verifying Claims"
category: "Cosign"
position: 105
position: 106
---

The general verification format with the `cosign verify` command is as follows.
Expand Down