(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)
openssl_x509_export_to_file — Exports a certificate to file
$certificate, string $output_filename, bool $no_text = true): bool
openssl_x509_export_to_file() stores
certificate into a file named by
output_filename in a PEM encoded format.
x509Список можливих значень є в параграфі Параметри ключа/сертифіката.
output_filenamePath to the output file.
no_text
Необов'язковий параметр notext впливає на кількість
тексту у виводі. Якщо дорівнює false, то до виводу буде включена додаткова
зрозуміла людині інформація. Початковим значенням параметра
notext є true.
| Версія | Опис |
|---|---|
| 8.0.0 |
certificate accepts an OpenSSLCertificate instance now;
previously, a resource of type OpenSSL X.509 was accepted.
|