CREATE KEY
Creates a private key.
	Creates a private key.
Syntax
CREATE [TEMP[ORARY]] KEY name
       { 'AES' [ PASSWORD 'password' ] | 'RSA' }
       {LENGTH length | AS key_text}
Parameters
- TEMPORARY
- Create with session scope. The key is stored in memory and is valid only for the current session.
- name
- The name of the key.
- password
- Password for the key.
- length
- Size of the key in bits.
Example: 2048 
- key_text
- The contents of the key to import.
Example: -----BEGIN RSA PRIVATE KEY-----...ABCD1234...-----END RSA PRIVATE KEY-----
Privileges
Superuser
Examples
See Generating TLS certificates and keys.