(PHP 4 >= 4.2.0, PHP 5, PHP 7)
openssl_pkey_new — Generates a new private key
$configargs
] )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().
Note: 이 함수가 제대로 작동하려면 유효한 openssl.cnf을 설치해야 합니다. 자세한 정보는 설치 섹션의 주석을 살펴보십시오.
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.
Returns a resource identifier for the pkey on success, or FALSE on
error.