openssl_csr_new

Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Generates a CSR
openssl_csr_new(¬†¬†¬†¬†array $distinguished_names,¬†¬†¬†¬†OpenSSLAsymmetricKey &$private_key,¬†¬†¬†¬†?array $options null,¬†¬†¬†¬†?array $extra_attributes null): OpenSSLCertificateSigningRequest|false
$privkey openssl_pkey_new();

$cert openssl_csr_new($dn$privkey);

$cert openssl_csr_sign($certnull$privkey3650);