v1/cryptotoken
Generate keys
Changed onGenerates a key pair given crypto token name, key pair alias, key algorithm and key specification, i.e. RSA 4096 or ECDSA secp256r1.
post/v1/cryptotoken/{cryptotoken_name}/generatekeys
Request
- Base URL/ejbca/ejbca-rest-api (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
cryptotoken_namestring required
Name of the token to generate keys for
Request body
Example request
{
"key_pair_alias": "signKey",
"key_alg": "RSA",
"key_spec": "4096",
"key_usage": "SIGN"
}Response
Successful operation
Changes
- breaking
removed the media type
*/*from the request body - info
added the media type
application/jsonto the request body - info
added the success response with the status
- breaking
- breaking
removed the media type
application/jsonfrom the request body - breaking
removed the success response with the status
- info
added the media type
*/*to the request body
- breaking