You are here: Re: open_pkcs7_decrypt() « PHP Language « IT news, forums, messages
Re: open_pkcs7_decrypt()

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация