Skip to content

Commit

Permalink
Improve help text for new key in attest subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
hslatman committed Jun 13, 2023
1 parent f74bb56 commit bc260c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/attest.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,9 @@ func init() {
flags.Var(format, "format", "The `format` to print the attestation.\nOptions are step, packed or tpm")
flags.Bool("leaf", false, "Print only the leaf certificate in a chain")
flags.Bool("new", false, "(EXPERIMENTAL) Creates and attests a new key instead of attesting an existing one")
flags.Var(kty, "kty", "The key `type` to build the certificate upon.\nOptions are EC and RSA")
flags.Var(crv, "crv", "The elliptic `curve` to use for EC and OKP key types.\nOptions are P256, P384 and P521")
flags.Var(kty, "kty", "The key `type` to build the certificate upon.\nOptions are EC and RSA. Only used with TPMKMS.")
flags.Var(crv, "crv", "The elliptic `curve` to use for EC and OKP key types.\nOptions are P256, P384 and P521. Only used with TPMKMS.")
flags.Int("size", 2048, "The key size for an RSA key") // TODO(hs): attesting 3072 bit RSA keys on TPM that doesn't support it returns an ugly error; we want to catch that earlier.
flags.Var(alg, "alg", "The hashing `algorithm` to use on RSA PKCS #1 and RSA-PSS signatures.\nOptions are SHA256, SHA384 or SHA512")
flags.Var(alg, "alg", "The hashing `algorithm` to use with RSA PKCS #1 signatures.\nOptions are SHA256, SHA384 or SHA512. Only used with TPMKMS.")
flags.String("in", "", "The `file` to sign with an attestation format.")
}

0 comments on commit bc260c8

Please sign in to comment.