openssl_x509_export_to_file Exports a certificate to file &reftitle.description; boolopenssl_x509_export_to_file OpenSSLCertificatestringcertificate stringoutput_filename boolno_text&true; openssl_x509_export_to_file stores certificate into a file named by output_filename in a PEM encoded format. &reftitle.parameters; &openssl.param.x509; output_filename Path to the output file. no_text ¬e.openssl.param-notext; &reftitle.returnvalues; &return.success; &reftitle.changelog; &Version; &Description; 8.0.0 certificate accepts an OpenSSLCertificate instance now; previously, a &resource; of type OpenSSL X.509 was accepted.