OpenSSL Функции
PHP Manual

openssl_x509_export_to_file

(PHP 4 >= 4.2.0, PHP 5)

openssl_x509_export_to_fileExports a certificate to file

Описание

bool openssl_x509_export_to_file ( mixed $x509 , string $outfilename [, bool $notext ] )

openssl_x509_export_to_file() stores x509 into a file named by outfilename in a PEM encoded format.

Параметри

x509

outfilename

Path to the output file.

notext

Незадължителният параметър notext влияе на многословието на изхода; ако е FALSE, то към изхода ще бъде включена допълнителна четима за човека информация. Стойността по подразбиране на notext е TRUE.

Връщани стойности

Връща TRUE при успех или FALSE при неуспех.


OpenSSL Функции
PHP Manual