W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗(yàn)值獎勵
(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)
openssl_x509_export_to_file — 導(dǎo)出證書至文件
openssl_x509_export_to_file(OpenSSLCertificate|string $certificate, string $output_filename, bool $no_text = true): bool
openssl_x509_export_to_file() 將 certificate 以 PEM 編碼的格式保存到名為 output_filename 的文件中。
x509
參見密鑰/證書參數(shù)以獲取有效值列表。
output_filename
輸出文件的路徑。
no_text
可選參數(shù) notext
影響輸出的冗余度。如果設(shè)為 false
,輸出內(nèi)容將包含附加的人類可讀信息。notext
的缺省值為 true
。
成功時返回 true, 或者在失敗時返回 false。
版本 | 說明 |
---|---|
8.0.0 | certificate 現(xiàn)在接受 OpenSSLCertificate 實(shí)例;之前接受類型 OpenSSL X.509 的 resource。 |
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: