openssl_pkey_new
Generates a new private key
&reftitle.description;
resourceopenssl_pkey_new
arrayconfigargs
openssl_pkey_new generates a new private and public
key pair. The public component of the key can be obtained using
openssl_pkey_get_public.
¬e.openssl.cnf;
&reftitle.parameters;
configargs
You can finetune the key generation (such as specifying the number of
bits) using configargs. See
openssl_csr_new for more information about
configargs.
&reftitle.returnvalues;
Returns a resource identifier for the pkey on success, or &false; on
error.