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
Code Examples

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.

Related Functions

Example of openssl_spki_export

Show all examples for openssl_spki_export

PHP Version:


Function openssl_spki_export:

OpenSSL Functions

Most used PHP functions