MAN page from OpenSuSE perl-OpenXPKI-Core-0.9.1389-6.362.CS.i586.rpm
OpenXPKI::Crypto::Backend::OpenSSL::Command::create_key
Section: User Contributed Perl Documentation (3)
Updated: 2008-09-30
Index Name
OpenXPKI::Crypto::Backend::OpenSSL::Command::create_key
Description
This command creates keys. Actually we support
EC,
DSA and
RSAkeys. The function creates always PKCS#8 keys. This ensures thatyou never have to take care about the type of the key after thekey was generated.
Functions
get_command
If you want to create a key for the used engine then you haveonly to specify the
ENC_ALG and
KEY_LENGTH. Perhaps you can specifythe
RANDOM_FILE too.
If you want to create a normal key then you must specify at minimuma passwd and perhaps ENGINE_USAGE if you want to use the engine of thetoken too.
- *
- TYPE (DSA, EC or RSA)
- *
- ENC_ALG
- *
- KEY_LENGTH (if the TYPE equals DSA or RSA)
- *
- CURVE_NAME (if the TYPE equals EC)
- *
- RANDOM_FILE
- *
- ENGINE_USAGE
- *
- PASSWD
Example:
$token->command (``COMMAND'' => ``create_key'',
``TYPE'' => ``RSA'',
``PARAMETERS'' => {
``ENC_ALG'' => ``aes128'',
``KEY_LENGTH'' => ``1024''});
hide_output
returns true
key_usage
returns true
get_result
returns the new encrypted key
Index
- Name
- Description
- Functions
- get_command
- hide_output
- key_usage
- get_result
This document was created byman2html,using the manual pages.