openssl_spki_export
PHP 5 >= 5.6.0, PHP 7, PHP 8
openssl_spki_export - Exports a valid PEM formatted public key signed public key and challenge
Manual
openssl_spki_export(
string$spki ): string|false
Exports PEM formatted public key from encoded signed public key and challenge
Parameters
- spki
-
Expects a valid signed public key and challenge
Return Values
Returns the associated PEM formatted public key or false on failure.
Exceptions and Errors
Emits an E_WARNING level error if an invalid argument is passed via the spki parameter.