openssl_pkey_get_private(3) php man page | unix.com

Man Page: openssl_pkey_get_private

Operating Environment: php

Section: 3

OPENSSL_PKEY_GET_PRIVATE(3)						 1					       OPENSSL_PKEY_GET_PRIVATE(3)

openssl_pkey_get_private - Get a private key

SYNOPSIS
resource openssl_pkey_get_private (mixed $key, [string $passphrase = ""])
DESCRIPTION
openssl_get_privatekey(3) parses $key and prepares it for use by other functions.
PARAMETERS
o $key -$key can be one of the following: oa string having the format file://path/to/file.pem. The named file must contain a PEM encoded certificate/private key (it may contain both). oA PEM formatted private key. o $passphrase - The optional parameter $passphrase must be used if the specified key is encrypted (protected by a passphrase).
RETURN VALUES
Returns a positive key resource identifier on success, or FALSE on error. PHP Documentation Group OPENSSL_PKEY_GET_PRIVATE(3)
Related Man Pages
ckeygen(1) - debian
amcrypt-ossl-asym(8) - debian
libssh2_userauth_publickey_fromfile_ex(3) - centos
kstash(8) - freebsd
ssh2_auth_pubkey_file(3) - php
Similar Topics in the Unix Linux Community
Simple rules of the UNIX.COM forums:
User Guide: Posting in the Emergency Forum
New Code Tags (Syntax Highlighting)
Status of UNIX.COM Forum Transformation
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch