Skip to content

Commit 970a117

Browse files
committed
removed passing a key on the command line
1 parent 06ce50a commit 970a117

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
@@ -63,7 +63,7 @@ There are credential processes for using key pairs stored on hardware tokens. Ch
6363
Some registries prioritize user experience over strictest security. They can simplify the process by providing key generation in the browser. If your registry works this way the workflow will be:
6464
1. Log into the registries website
6565
2. Go to the "generate a key pair" page, and copy the command it generated for you. It will disappear when you leave the page, the server will not have a copy of the private key!
66-
3. Run it on the command line. It will look like `cargo login --registry=name --private-key="key"`
66+
3. Run it on the command line. It will look like `cargo login --registry=name --private-key` witch will prompt you to put in the key value.
6767

6868
# Reference-level explanation
6969
[reference-level-explanation]: #reference-level-explanation
@@ -83,7 +83,7 @@ There is also an optional field called `private-key-subject` which is a string c
8383
This string will be included as part of an asymmetric token and should not be secret.
8484
It is intended for the rare use cases like "cryptographic proof that the central CA server authorized this action". Cargo requires it to be non-whitespace printable ASCII. Registries that need non-ASCII data should base64 encode it.
8585

86-
Both fields can be set with `cargo login --registry=name --private-key="key" --private-key-subject="subject"`.
86+
Both fields can be set with `cargo login --registry=name --private-key --private-key-subject="subject"` witch will prompt you to put in the key value.
8787

8888
A registry can have at most one of `private-key`, `token`, or `credential-process` set.
8989

0 commit comments

Comments
 (0)