OpenXPKI::Server::Workflow::Activity::Tools::GenerateKey
Creates a new (encrypted) private key with the parameters given. The only
mandatory parameter is the password, the others default to a rsa 2048 bit key
encrypted with aes256.
For details on the parameters please see the documentation of the
generate_key API method.
The key specification parameters are not validated and handed over to the
generate_key method of the crypto token.
- key_alg
- Mapped unmodified to key_alg of the api method, set to 'rsa' of not
set.
- enc_alg
- Mapped unmodified to key_alg of the api method, set to 'aes256' of not
set.
- password
- Password to encrypt the key with, mandatory.
- key_gen_params
- If parameter is given, it must be a hash. The values given in the key
curve_name and key_length are mapped to the api method as
is. Other keys are silently ignored, no defaults are applied (default key
lenght for RSA/DSA is set in the API method).
- target_key
- The context value to write the encrypted key to. Default is
private_key.