Syntax:
create_asymmetric_priv_key(algorithm, key_length)

Creates a private key using the given algorithm and key length, and
returns the key as a binary string in PEM format. The key is in PKCS #8
format. If key generation fails, the result is NULL.

For the legacy version of this function in use before MySQL 8.0.29, see
https://dev.mysql.com/doc/refman/8.0/en/enterprise-encryption-functions
-legacy.html.

algorithm is the encryption algorithm used to create the key. The
supported algorithm value is 'RSA'.

key_length is the key length in bits. If you exceed the maximum allowed
key length or specify less than the minimum, key generation fails and
the result is null output. The minimum allowed key length in bits is
2048. The maximum allowed key length is the value of the
enterprise_encryption.maximum_rsa_key_size system variable, which
defaults to 4096. It has a maximum setting of 16384, which is the
maximum key length allowed for the RSA algorithm. See
https://dev.mysql.com/doc/refman/8.0/en/enterprise-encryption-configuri
ng.html.

*Note*:

Generating longer keys can consume significant CPU resources. Limiting
the key length using the enterprise_encryption.maximum_rsa_key_size
system variable lets you provide adequate security for your
requirements while balancing this with resource usage.

This example creates a 2048-bit RSA private key, then derives a public
key from the private key:

URL: https://dev.mysql.com/doc/refman/8.0/en/enterprise-encryption-functions.html

