Cert
Work with X.509 certificates
Synopsis
Cert <subcommand>
Subcommands
| Command | Description |
|---|---|
| selfcert | Create a self-signed certificate |
For help on a subcommand, use Cert <subcommand> -h
Cert selfcert
Create a self-signed certificate
Synopsis
Cert selfcert [options] -PfxFileName <String> <Subject>
Parameters
| Name | Aliases | Value | Description |
|---|---|---|---|
| <Subject> | <String> | Subject name as an X.500 string |
Options
| Name | Aliases | Value | Description |
|---|---|---|---|
| -CertFileName | <String> | Name of certificate file (.pem or .cer) | |
| -ConsoleOutputStyle | -OutputStyle | <OutputStyle> | Determines the output style |
| Possible values: | |||
| Freeform | |||
| Raw | |||
| Table | |||
| List | |||
| Csv | |||
| Tsv | |||
| Json | |||
| TreeTable | |||
| -HashAlgorithm | <HashAlgorithm> | Hash algorithm | |
| Possible values: | |||
| Md5 | |||
| Sha1 | |||
| Sha256 | |||
| Sha384 | |||
| Sha512 | |||
| Sha3_256 | |||
| Sha3_384 | |||
| Sha3_512 | |||
| -K, -KeySizeBits | <Int32> | Size of key, in bits | |
| Default: 2048 | |||
| -OutputHeaders | <SwitchParam> | Print headers for table/list/CSV/TSV styles | |
| Default: True | |||
| -P, -PfxFileName | <String> | Name of .pfx file | |
| -SubjectAltName | <String> | Subject alternate name | |
| -T, -TemplateFile | <String> | Name of file containing certificate to copy |
Output
| Name | Aliases | Value | Description |
|---|---|---|---|
| -ConsoleLogFormat | -LogFormat | <LogFormat> | Sets the format of log messages written to the console |
| Default: 0 | |||
| Possible values: | |||
| Text | |||
| TextWithTimestamp | |||
| Json | |||
| -DebugLog | -vvv | <SwitchParam> | Prints debug messages |
| -Diagnostic | -vv | <SwitchParam> | Prints diagnostic messages |
| -HumanReadable | <SwitchParam> | Formats file sizes as human-readable values | |
| -LogLevel | <LogMessageSeverity> | Sets the lowest level of messages to log | |
| Possible values: | |||
| Debug | |||
| Diagnostic | |||
| Verbose | |||
| Info | |||
| Warning | |||
| Error | |||
| Critical | |||
| -Verbose | -V | <SwitchParam> | Prints verbose messages |