|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20936 Patch for use of public keys
Submitted: 2002-12-11 08:51 UTC Modified: 2002-12-12 07:57 UTC
From: jeroen at derks dot it Assigned:
Status: Closed Package: OpenSSL related
PHP Version: 4CVS-2002-12-11 (dev) OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
6 + 31 = ?
Subscribe to this entry?

 [2002-12-11 08:51 UTC] jeroen at derks dot it
I required the use of public keys (not certificates) for a current project, so I patched ext/openssl/openssl.c to support public keys. The patch can be found at

I tries to read a public key if reading a certificate failed in php_openssl_evp_from_zval(). Also a check was added to check whether a private key was requested and only a public key is available.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-11 09:36 UTC]
Please read the CODING_STANDARDS and README.SUBMITTING-PATCH files in the php4/ directory;
mail the patch as a MIME attachment (give it a .txt extension if your mailer doesn't set the mime type correctly, as binary attachments are stripped from the list), and CC the patch to the maintainer (that's me,
Please also describe in more detail what the patch changes and or fixes, with a couple of lines of sample code.
 [2002-12-11 09:37 UTC]
the patch should go to, CC:

I was not able to download the patch from the URL you posted.
 [2002-12-12 07:57 UTC]
Verified the problem and the patch has gone into PHP 4.3.
Thanks for your help :)
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Nov 29 16:01:27 2023 UTC