bool openssl_csr_export_to_file ( resource $csr , string $outfilename [, bool $notext = true ] )
openssl_csr_export_to_file() takes the Certificate Signing Request represented by csr and saves it as ascii-armoured text into the file named by outfilename.
Returns TRUE on success or FALSE on failure.