open_pkcs7_decrypt()

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-29-2006
clb
 
Posts: n/a
Default open_pkcs7_decrypt()

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.

Reply With Quote
  #2 (permalink)  
Old 12-30-2006
Ric
 
Posts: n/a
Default Re: open_pkcs7_decrypt()

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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:40 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0