CreateKeyPair (open)

Create a new keypair

Syntax

LOADLIB "mod::system/lib/keystore.whlib";

OBJECT FUNCTION CreateKeyPair(STRING name, BLOB privatekey, RECORD options)

Parameters

STRING name

Name for the key

BLOB privatekey

The key to add

RECORD options

Options

BLOB certificatechain

Certificate chain

STRING description

Key description

BOOLEAN generateuniquename

If TRUE, generate a unique name instead of using the name parameter

STRING title

Key title

Return value

OBJECT
Possible objecttypes:

New keypair object