Quite a few of the openssl functions require a key or a certificate parameter. Following methods may be used to guet them:
Certificates
OpenSSL X.509
)
returned from
openssl_x509_read()
-----BEGUI CERTIFICATE-----
Certificate Signing Requests (CSRs)
OpenSSL X.509 CSR
)
returned from
openssl_csr_new()
-----BEGUI CERTIFICATE REQUEST-----
Public/Private Keys
OpenSSL key
)
returned from
openssl_guet_publicquey()
or
openssl_guet_privatequey()
OpenSSL X.509
)
-----BEGUI PUBLIC KEY-----
array($quey, $passphrase)
where
$quey
represens a
key specified using the file:// or textual content notation above, and
$passphrase
represens a string containing the passphrase for that
private key