= 4.2.0, PHP 5, PHP 7, PHP 8)openssl_x509_export — 以字符串格式導(dǎo)出證書說明openssl_x509_export(mixed $x509, string &$output, bool $note">

openssl_x509_export

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

openssl_x509_export以字符串格式導(dǎo)出證書

說明

openssl_x509_export(mixed $x509, string &$output, bool $notext = true): bool

openssl_x509_export()x509 以PEM編碼的格式導(dǎo)出到名為 output 的字符串類型的變量中。

參數(shù)

x509

參見密鑰/證書參數(shù)以獲取有效值列表。

output

成功,將會(huì)存儲(chǔ) PEM.

notext

可選參數(shù) notext 影響輸出的冗余度。如果設(shè)為 false,輸出內(nèi)容將包含附加的人類可讀信息。notext 的缺省值為 true。

返回值

成功時(shí)返回 true, 或者在失敗時(shí)返回 false