Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Curve = cli.StringFlag{
Name: "crv, curve",
Usage: `The elliptic <curve> to use for EC and OKP key types. Corresponds
to the **"crv"** JWK parameter. Valid curves are defined in JWA [RFC7518]. If
unset, default is P-256 for EC keys and Ed25519 for OKP keys.
: <curve> is a case-sensitive string and must be one of:
**P-256**
: NIST P-256 Curve
**P-384**
: NIST P-384 Curve
**P-521**
: NIST P-521 Curve
**Ed25519**
: Ed25519 Curve`,
}
Curve is the flag to se the key curve.
View Source
var Force = cli.BoolFlag{
Name: "f,force",
Usage: "Force the overwrite of files without asking.",
}
Force is a cli.Flag used to overwrite files.
View Source
var Insecure = cli.BoolFlag{
Name: "insecure",
}
Insecure is the flag required on insecure operations
View Source
var KTY = cli.StringFlag{
Name: "kty",
Value: "EC",
Usage: `The <kty> to build the certificate upon.
If unset, default is EC.
: <kty> is a case-sensitive string and must be one of:
**EC**
: Create an **elliptic curve** keypair
**OKP**
: Create an octet key pair (for **"Ed25519"** curve)
**RSA**
: Create an **RSA** keypair`,
}
KTY is the flag to set the key type.
View Source
var NoPassword = cli.BoolFlag{
Name: "no-password",
Usage: `Do not ask for a password to encrypt a private key. Sensitive key material will
be written to disk unencrypted. This is not recommended. Requires **--insecure** flag.`,
}
NoPassword is a cli.Flag used to avoid using a password to encrypt private keys.
View Source
var PasswordFile = cli.StringFlag{
Name: "password-file",
Usage: `The path to the <file> containing the password to encrypt or decrypt the private key.`,
}
PasswordFile is a cli.Flag used to pass a file to encrypt or decrypt a private key.
View Source
var Size = cli.IntFlag{
Name: "size",
Usage: `The <size> (in bits) of the key for RSA and oct key types. RSA keys require a
minimum key size of 2048 bits. If unset, default is 2048 bits for RSA keys and 128 bits for oct keys.`,
}
Size is the flag to set the key size.
View Source
var Subtle = cli.BoolFlag{
Name: "subtle",
}
Subtle is the flag required for delicate operations.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.