openssl_spki_new

Supported Versions: PHP 5 >= 5.6.0, PHP 7, PHP 8
Generate a new signed public key and challenge
<?php openssl_spki_new(OpenSSLAsymmetricKey $private_key, string $challenge, int $digest_algo = OPENSSL_ALGO_MD5): string|false