php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50974 A public key can't be extracted from a private one
Submitted: 2010-02-09 16:09 UTC Modified: 2010-02-09 18:52 UTC
From: willy dot weisz at univie dot ac dot at Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: irrelevant
Private report: No CVE-ID: None
 [2010-02-09 16:09 UTC] willy dot weisz at univie dot ac dot at
Description:
------------
The manual page says that the parameter "certificate" can be a private key (alternative 3). This is pure nonsense: A public key can't be extracted from a private key (nor is it possible the other way round), that would make the concept of Public Key Cryptography absurd.

This is a bug report against the manual page, not the code!!!

Reproduce code:
---------------
---
From manual page: function.openssl-pkey-get-public#Parameters
---


Expected result:
----------------
A correct manual page.

Actual result:
--------------
A manual page with an absurd alternative 3 for the parameter "certificate".

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-02-09 18:52 UTC] willy dot weisz at univie dot ac dot at
I was too fast, I made a mistake: PKCS#1 as implemented by openSSL defines an RSAPrivateKey structure whose components allow the (re)construction of the public key and not only consisting of the module and the exponent of the private key, which would be sufficient for a private key.

The bug report against the documentation is thus irrelevant.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Sep 26 14:03:36 2021 UTC