Summary: Exports a CSR to a file
bool openssl_csr_export_to_file(resource $csr, string $outfilename[, bool $notext = true])
Description
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
.
Return: bool
Returns TRUE
on success or FALSE
on failure.
Parameters
Mandatory
- resource $csr:
- string $outfilename: Path to the output file.
Optional
- bool $notext [ = true]: The optional parameter
notext
affects the verbosity of the output; if it isFALSE
, then additional human-readable information is included in the output. The default value ofnotext
isTRUE
.