Dutch PHP Conference 2025 - Call For Papers

openssl_x509_export_to_file

(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)

openssl_x509_export_to_fileExports a certificate to file

Опис

openssl_x509_export_to_file(OpenSSLCertificate|string $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_filename

Path to the output file.

no_text

Необов'язковий параметр notext впливає на кількість тексту у виводі. Якщо дорівнює false, то до виводу буде включена додаткова зрозуміла людині інформація. Початковим значенням параметра notext є true.

Значення, що повертаються

Повертає true у разі успіху або false в разі помилки.

Журнал змін

Версія Опис
8.0.0 certificate accepts an OpenSSLCertificate instance now; previously, a resource of type OpenSSL X.509 was accepted.
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top