<?php openssl_x509_export(OpenSSLCertificate|string $certificate, string &$output, bool $no_text = true): bool
<?php $cert = openssl_csr_sign($cert, null, $privkey, 3650); openssl_x509_export($cert, $out); echo $out; $passphrase = isset($argv[2]) ? $argv[2] : null;