= 4.2.0, PHP 5, PHP 7, PHP 8)openssl_x509_export_to_file — 導(dǎo)出證書至文件說明openssl_x509_export_to_file(mixed $x509, string">
(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)
openssl_x509_export_to_file — 導(dǎo)出證書至文件
openssl_x509_export_to_file() 將
x509 以PEM編碼的格式保存到名為 outfilename 的文件中。
x509參見密鑰/證書參數(shù)以獲取有效值列表。
outfilename輸出文件的路徑。
notext
可選參數(shù) notext 影響輸出的冗余度。如果設(shè)為
false,輸出內(nèi)容將包含附加的人類可讀信息。notext 的缺省值為 true。
成功時(shí)返回 true, 或者在失敗時(shí)返回 false。