CREATE KEY

Creates a private key.

Syntax

CREATE KEY key_name TYPE 'key_type' 
	[PASSWORD 'password'] 
	{LENGTH key_length | AS 'key'}

Parameters

key_name

The name of the key.

key_type

The type of key: AES, RSA

'password'

Sets a password for the key.

key_length

Specifies the size of the key in bits.

Example: 2048

'key'

Specifies and imports an existing key.

Example: -----BEGIN RSA PRIVATE KEY-----...ABCD1234...-----END RSA PRIVATE KEY-----

Privileges

Superuser