PHP.nl

openssl_pkey_get_public

openssl_pkey_get_public

Extract public key from certificate and prepare it for use

 **openssl_pkey_get_public**  $public_key
extracts the public key from
and prepares it for use by other

functions. openssl_pkey_get_public``public_key

public_key can be one of the following:

  `public_key`1. an  instance`OpenSSLAsymmetricKey`
  1. a string having the format . The named file must contain a encoded certificate/public key (it may contain both).

  2. A formatted public key.

    Returns an instance on success, or false on error. OpenSSLAsymmetricKey