Skip to content

Commit

Permalink
Added options for v2 signing to CLI section of the js README.
Browse files Browse the repository at this point in the history
  • Loading branch information
zgroza committed Aug 6, 2024
1 parent aa6382d commit c945934
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions js/sign/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,18 @@ This package also includes 2 CLI tools
There are the following command-line flags available:

- (required) `--privateKey <filePath>` (`-k <filePath>`)
which takes the path to ed25519 private key.
which takes the path to ed25519 private key. This can be specified multiple times.
- (required) `--input <filePath>` (`-i <filePath>`)
which takes the path to the web bundle to be signed.
- (optional) `--output <filePath>` (`-o <filePath>`)
which takes the path to the wanted signed web bundle output. Default:
`signed.swbn`.
- (optional) `--version <version>`
which can be either `v1` or `v2`, defaulting to `v1`. Sets the integrity block format.
- (required if `v2`) `--web-bundle-id <web-bundle-id>`
which takes the `web-bundle-id` to be associated with the web bundle.

Example command:
Example commands:

```bash
wbn-sign \
Expand All @@ -120,6 +124,17 @@ wbn-sign \
-k ~/path/to/ed25519key.pem
```

```bash
wbn-sign \
-i ~/path/to/webbundle.wbn \
-o ~/path/to/signed-webbundle.swbn \
-k ~/path/to/ed25519key.pem \
-k ~/path/to/ecdsa_p256key.pem
--version v2 \
--web-bundle-id \
amfcf7c4bmpbjbmq4h4yptcobves56hfdyr7tm3doxqvfmsk5ss6maacai
```

### Running wbn-dump-id

There are the following command-line flags available:
Expand Down

0 comments on commit c945934

Please sign in to comment.