(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)
openssl_x509_export_to_file — 將憑證匯出到檔案
$certificate
, 字串 $output_filename
, 布林值 $no_text
= true
): 布林值
openssl_x509_export_to_file() 將 certificate
以 PEM 編碼格式儲存到名為 output_filename
的檔案中。
版本 | 說明 |
---|---|
8.0.0 |
certificate 現在接受 OpenSSLCertificate 實例;先前接受類型為 OpenSSL X.509 的 資源。 |