openssl_pkey_new

 resource openssl_pkey_new ([ array $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: You need to have a valid openssl.cnf installed for this function to operate correctly. See the notes under the installation section for more information.

戻り値

Returns a resource identifier for the pkey on success, or FALSE on error.