convert-key
This command converts a private key alias to a specific output format and writes it to a file.
Syntax
convert-key alias file [format]
Parameters
- alias
- Specifies the name of the key alias.
- file
- Specifies the output file name. Use the
temporary:///mykey.pub
format. - format
- Specifies the format for the output file. The supported format
is
openssh-pubkey
.
Guidelines
The convert-keycommand converts a private key alias to a specific output format and writes it to a file. If the output format includes private fields of the key, the file must be in the same directory as the configured file of the private key alias.
The openssh-pubkey
format
can be used in OpenSSH authorized_keys
files. The
format does not contain any private fields. It contains only public
fields.