Skip to content

Commit

Permalink
secret: Add docs and update README.md
Browse files Browse the repository at this point in the history
Signed-off-by: Cole Robinson <crobinso@redhat.com>
  • Loading branch information
crobinso authored and tylerfanelli committed Dec 13, 2022
1 parent 22bce69 commit 963a220
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,22 @@ Rotates the Platform Diffie-Hellman (PDH).
$ sevctl rotate
```

### secret build

Generate secret header and payload binary content, and write to specified
output paths. Secrets are passed as `--secret UUID:FILENAME` pairs

```console
$ sevctl secret build \
--tik /path/to/VM_tik.bin \
--tek /path/to/VM_tik.bin \
--launch-measure-blob /o0nzDKE5XgtVnUZWPhUea/WZYrTKLExR7KCwuMdbActvpWfXTFk21KMZIAAhQny \
--secret 736869e5-84f0-4973-92ec-06879ce3da0b:/path/to/secret.txt \
/path/to/secret_header.bin \
/path/to/secret_payload.bin
```


### session

Given a certificate chain file and 32-bit policy, generates base64-encoded GODH and launch session files; as
Expand Down
16 changes: 16 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,22 @@
//! $ sevctl rotate
//! ```
//!
//! ## secret build
//!
//! Generate secret header and payload binary content, and write to specified
//! output paths. Secrets are passed as `--secret UUID:FILENAME` pairs
//!
//! ```console
//! $ sevctl secret build \
//! --tik /path/to/VM_tik.bin \
//! --tek /path/to/VM_tik.bin \
//! --launch-measure-blob /o0nzDKE5XgtVnUZWPhUea/WZYrTKLExR7KCwuMdbActvpWfXTFk21KMZIAAhQny \
//! --secret 736869e5-84f0-4973-92ec-06879ce3da0b:/path/to/secret.txt \
//! /path/to/secret_header.bin \
//! /path/to/secret_payload.bin
//! ```
//!
//!
//! ## session
//!
//! Given a certificate chain file and 32-bit policy, generates base64-encoded GODH and launch session files; as
Expand Down

0 comments on commit 963a220

Please sign in to comment.