This is a discussion on open_pkcs7_decrypt() within the alt.comp.lang.php forums, part of the PHP Programming Forums category; PHP Warning: openssl_pkcs7_decrypt(): unable to coerce parameter 3 to x509 cert in ... on line 8 This is the error message ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
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/functio...et-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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|