Doc #74959 [NEW]: Document openssl_x509_check_private_key() $key parameter caveat
| From: | salathe@php.net | Date: | Thu, 20 Jul 2017 21:08:05 +0000 |
| Subject: | Doc #74959 [NEW]: Document openssl_x509_check_private_key() $key parameter caveat | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-14853@lists.php.net to get a copy of this message | ||
From: salathe@php.net
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Document openssl_x509_check_private_key() $key parameter caveat
Description:
------------
The $key parameter does not necessarily need to be a private key for the
function to return true.
The OpenSSL docs have a "BUGS" section for this function:
"The check_private_key functions don't check if k itself is indeed a
private key or not. It merely compares the public materials (e.g.
exponent and modulus of an RSA key) and/or key parameters (e.g. EC
params of an EC key) of a key pair. So if you pass a public key to these
functions in k, it will return success."
- from
https://www.openssl.org/docs/manmaster/man3/X509_check_private_key.html
This should be incorporated into our docs.
--
Edit bug report at https://bugs.php.net/bug.php?id=74959&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74959&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74959&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74959&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74959&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74959&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74959&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74959&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74959&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74959&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74959&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74959&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74959&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74959&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74959&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74959&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74959&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74959&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74959&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74959&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74959&r=mysqlcfg