openssl_spki_export

Supported Versions: PHP 5 >= 5.6.0, PHP 7, PHP 8
Exports a valid PEM formatted public key signed public key and challenge
<?php openssl_spki_export(string $spki): string|false