openssl_x509_export_to_file
(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)
openssl_x509_export_to_file — 導出證書至檔案
說明
openssl_x509_export_to_file() 將
x509 以PEM編碼的格式儲存到名為 outfilename 的檔案中。
參數
-
x509 -
參見金鑰/證書參數以獲取有效值列表。
-
outfilename -
輸出檔案的路徑。
-
notext -
可選參數
notext影響輸出的冗餘度。如果設為false,輸出內容將包含附加的人類可讀資訊。notext的預設值為true。
返回值
成功時返回 true, 或者在失敗時返回 false。