Top
Systemwalker Operation Manager V17.0.1 Reference Guide

7.22 mjkeygen Key Pair Creation Command [Windows]

Synopsis

[Create]
mjkeygen create -k <public key storage directory> [-u <user name>]
[Delete]
mjkeygen delete [-u <user name>]
[Output]
mjkeygen getkey -k <public key storage directory> [-u <user name>]
[Check]
mjkeygen chkkey [-u <user name>]

Description

Creates, sets, or deletes a key pair (public key/private key) to be used by the mjrmtjob command (remote machine command/shell script execution command).

When using the create and getkey options, the public key is output to the specified directory.

A non-RSA key (ECDSA) can be created by setting the MJKEYGEN_KEYTYPE environment variable.

Options

create

Creates a key pair for the effective user of this command or the user specified in the -u option, sets the key for the system and outputs the public key file(user name.mjeskey.pub).

-k <public key storage directory>

Specify the full path of the public key storage directory using up to 64 bytes.
Alphanumeric characters and the following symbols ("\", ".", ":", "-", "_") can be used.

-u <user name>

Specify the user name of the target key pair. Specify any user using up to 64 bytes. Alphanumeric characters and the following symbols ("\", ".", ":", "-", "_") can be used.
This option can be specified only when this command is executed by a system administrator (user belonging to the Administrators group).
A local account cannot be specified when using Active Directory.
Also, the user principal name cannot be specified.
If this option is omitted, the key pair target user will be the effective user of the command.

delete

Deletes the key pair set for the system.

getkey

Outputs the public key (user name.mjeskey.pub) if the key pair is set to the system. This option can be used for cases such as when the public key is deleted by mistake.

chkkey

Checks if the key pair is set to the system.

Environment Variable

Specifies to create a non-RSA key (ECDSA).

Environment Variable

Value (Key Type)

MJKEYGEN_KEYTYPE

Specify one of the following:

  • ecdsa256

  • ecdsa384

  • ecdsa521

Return Values

Return value

Meaning

0

The command processing has terminated normally.

Other than 0

The command processing has failed. An error message is output.

Command Location

Windows

<Systemwalker Operation Manager installation directory>\MpWalker.JM\bin

Cautions

Examples

[Executed by a general user]

[Executed by a system administrator]

Output Example