<?php openssl_pkey_export( OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $key, string &$output, ?string $passphrase = null, ?array $options = null): bool
<?php echo $out; $passphrase = isset($argv[2]) ? $argv[2] : null; openssl_pkey_export($privkey, $out, $passphrase); echo $out;