openssl_spki_verify
PHP 5 >= 5.6.0, PHP 7, PHP 8
openssl_spki_verify - Verifies a signed public key and challenge
Manual
openssl_spki_verify(
string$spki ): bool
Validates the supplied signed public key and challenge
Parameters
- spki
-
Expects a valid signed public key and challenge
Return Values
Returns true on success or false on failure.
Exceptions and Errors
Emits an E_WARNING level error if an invalid argument is passed via the spki parameter.