(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)
openssl_x509_export_to_file — 将证书导出到文件
$certificate, string $output_filename, bool $no_text = true): bool
openssl_x509_export_to_file() 将 certificate 存储到名为 output_filename 的文件中,并以 PEM 编码格式存储。
| 版本 | 描述 |
|---|---|
| 8.0.0 |
certificate 现在接受 OpenSSLCertificate 实例;以前,它接受类型为 OpenSSL X.509 的 资源。 |