Posted by Ric on 12/30/06 01:26
clb schrieb:
> PHP Warning: openssl_pkcs7_decrypt(): unable to coerce parameter 3 to
> x509 cert in ... on line 8
>
> This is the error message that I get and I don't know what it is
> complaining about. I'm giving it a cert.pem that has been brought it by
> openssl_get_publickey() but what does it want? Suggestions appreciated.
>
I haven't tried this myself, but according to the php documentation
(http://de2.php.net/manual/en/function.openssl-pkey-get-private.php) you
need to use:
openssl_pkey_get_private
and pass the key ressource to
openssl_get_privatekey
Give it a try and let us know what happened
Navigation:
[Reply to this message]
|