Skip to content

Commit 920bb52

Browse files
committed
spelling
1 parent baf4248 commit 920bb52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/0000-cargo-asymmetric-tokens.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ Some registries prioritize user experience over strictest security. They can sim
7070

7171
## Setting and storing login information
7272

73-
In [`config.toml`](https://doc.rust-lang.org/cargo/reference/config.html) and `credentials.toml` files there is a field called `private-key`, witch is a private key formatted in the secret [subset of `PASERK`](https://github.com/paseto-standard/paserk/blob/master/types/secret.md) and is used to sign asymmetric tokens
73+
In [`config.toml`](https://doc.rust-lang.org/cargo/reference/config.html) and `credentials.toml` files there is a field called `private-key`, which is a private key formatted in the secret [subset of `PASERK`](https://github.com/paseto-standard/paserk/blob/master/types/secret.md) and is used to sign asymmetric tokens
7474

7575
A keypair can be generated with `cargo login --generate-keypair` which will:
7676
- generate a public/private keypair in the currently recommended fashion.
7777
- save the private key in `credentials.toml`.
7878
- print the public key in [PASERK public](https://github.com/paseto-standard/paserk/blob/master/types/public.md) format.
7979

80-
It is recommended that the `private-key` be saved in `credentials.toml`. It is also supported in `config.toml`, primarily so that it can be set using the associated environment variable. Witch is the recommended way to provide it in CI contexts. This set up is what we have for the `token` field for setting a secret token.
80+
It is recommended that the `private-key` be saved in `credentials.toml`. It is also supported in `config.toml`, primarily so that it can be set using the associated environment variable, which is the recommended way to provide it in CI contexts. This setup is what we have for the `token` field for setting a secret token.
8181

8282
There is also an optional field called `private-key-subject` which is a string chosen by the registry.
8383
This string will be included as part of an asymmetric token and should not be secret.

0 commit comments

Comments
 (0)