openssl_spki_verify

Supported Versions: PHP 5 >= 5.6.0, PHP 7, PHP 8
Verifies a signed public key and challenge
openssl_spki_verify(string $spki): bool