OpenXPKI::Server::NICE::Role::KeyGenerationLocal
Calls the local API method generate_key, input parameters are
"drop in" compatible to the Tools::GenerateKey activity.
Input Parameters
Input parameters are positional arguments
- key algorithm
- Key algorithm, passed as is to the generate_key API method
- key parameters
- Hash holding additional key parameters, supported keys are
curve_name and key_length.
- key transport
parameters
- Hash holding the parameters for the transport encryption of the key.
Setting a password is mandatory, algorithm defaults to
aes256.
Return Value
The return value is a hash with following paramters.
- pkey
- The PEM encoded private key, including header/footer lines
- pubkey
- The base64 encoded public key (no line breaks or headers)
- key_id
- The key identifier, sha1 hash (uppercase hex) of pubkey, same format as
subject_key_id of PKCS10 and x509 classes.