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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: willy dot weisz at univie dot ac dot at
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 11:01:32 2024 UTC