Req #60023 [Com]: Add certificate revocation support
Edit report at https://bugs.php.net/bug.php?id=60023edit=1 ID: 60023 Comment by: gufophp at gmail dot com Reported by:brett at Silcon dot com Summary:Add certificate revocation support Status: Open Type: Feature/Change Request Package:OpenSSL related PHP Version:5.4.0beta1 Block user comment: N Private report: N New Comment: duplicate bug: https://bugs.php.net/bug.php?id=40046 Previous Comments: [2011-10-09 18:28:43] brett at Silcon dot com I realize those commands use text file indices and things.. It would be really great if there ended up being a way to run a full CA out of PHP with MySQL and never need to deal with physical files. I suppose this is probably why this feature hasn't been implemented, but it would be great for someone to pair up with openssl on. [2011-10-09 18:02:25] brett at Silcon dot com Description: Looking to add the equivalent of these: Revoke the user certificate: openssl ca -revoke [xy.pem] Create a Certificate Revocation List (CRL): openssl ca -gencrl -out test.crl -- Edit this bug report at https://bugs.php.net/bug.php?id=60023edit=1
Bug #61624 [Com]: round
Edit report at https://bugs.php.net/bug.php?id=61624edit=1 ID: 61624 Comment by: gufophp at gmail dot com Reported by:gufophp at gmail dot com Summary:round Status: Open Type: Bug Package:Math related Operating System: win32 PHP Version:5.4.0 Block user comment: N Private report: N New Comment: php.ini change precision to precision = 17 Previous Comments: [2012-04-05 03:05:37] reeze dot xia at gmail dot com Hi, gufophp: I can't reproduce it in both 5.4 5.3 | Win7 Mac OS X. can you feedback more information about this?. Thanks [2012-04-04 17:06:35] gufophp at gmail dot com Description: ?php echo round(33.29715783,4); // fail echo -; echo round(33.29715783,2); // fail echo -; echo round(33.29715783); //ok echo -; echo round(33.29715783,-1); //ok echo -; echo round(55533.29715783,-2); //ok ? Test script: --- 33.29715783-33.29715783-33-30-55500 Expected result: 33.3-33.3-33-30-55500 Actual result: -- 33.29715783-33.29715783-33-30-55500 -- Edit this bug report at https://bugs.php.net/bug.php?id=61624edit=1
[PHP-BUG] Bug #61624 [NEW]: round
From: Operating system: win32 PHP version: 5.4.0 Package: Math related Bug Type: Bug Bug description:round Description: ?php echo round(33.29715783,4); // fail echo -; echo round(33.29715783,2); // fail echo -; echo round(33.29715783); //ok echo -; echo round(33.29715783,-1); //ok echo -; echo round(55533.29715783,-2); //ok ? Test script: --- 33.29715783-33.29715783-33-30-55500 Expected result: 33.3-33.3-33-30-55500 Actual result: -- 33.29715783-33.29715783-33-30-55500 -- Edit bug report at https://bugs.php.net/bug.php?id=61624edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61624r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61624r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61624r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61624r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61624r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61624r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61624r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61624r=needscript Try newer version: https://bugs.php.net/fix.php?id=61624r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61624r=support Expected behavior: https://bugs.php.net/fix.php?id=61624r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61624r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61624r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61624r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61624r=php4 Daylight Savings:https://bugs.php.net/fix.php?id=61624r=dst IIS Stability: https://bugs.php.net/fix.php?id=61624r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61624r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61624r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61624r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61624r=mysqlcfg
Bug #50776 [Com]: openssl_pkcs7_verify
Edit report at https://bugs.php.net/bug.php?id=50776edit=1 ID: 50776 Comment by: gufophp at gmail dot com Reported by:gufophp at gmail dot com Summary:openssl_pkcs7_verify Status: No Feedback Type: Bug Package:OpenSSL related Operating System: win32 apache PHP Version:5.3.1 Block user comment: N Private report: N New Comment: please CHECK all certificate in filesysem (pubblic key): auto signed certificate root ca(H0) --create and sign certifichate used H0, this certificate is H1 create a new certificate used H1 to sign, this certificate is H2 to check certificate(H2) authority ALL certificate is necessary (H0, H1, and H2) if not have ALL publik key of all cert, cerificate check fail certificate verify error You have all certificate ? please update documentation (no bug) Previous Comments: [2010-04-25 20:25:17] fel...@php.net Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ [2010-01-24 01:00:01] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to Open. [2010-01-16 19:53:10] j...@php.net Try Google for the error: Likewise, if the senderâs certificate isnât recognized by your OpenSSL infrastructure, youâll get a similar error Looks like your script is buggy. [2010-01-16 06:06:14] gufophp at gmail dot com Description: PKCS7_verify:certificate verify error Reproduce code: --- ?php $body = EOD You have my authorization to spend $10,000 on dinner expenses. The CEO EOD; $key = file_get_contents(test.key); $crt = file_get_contents(test.crt); $file = tempnam('', 'mail'); file_put_contents($file, $body); $signed = tempnam(, signed); // view 1 echo openssl_x509_check_private_key($crt, array($key,gufogufogufogufogufogufo)) ; while ($msg = openssl_error_string()) echo $msg . br /\n; echo hr /; // view 1 $arr = array(To = j...@example.com, // keyed syntax From: HQ c...@example.com, // indexed syntax Subject = Eyes only); echo openssl_pkcs7_sign($file, $signed, $crt, array($key, gufogufogufogufogufogufo),$arr); while ($msg = openssl_error_string()) echo $msg . br /\n; echo hr /; $body = file_get_contents($signed); file_put_contents(signed.txt,$body); $pa = C:\\Programmi\\Apache Software Foundation\\Apache2.2\\htdocs\sign\\; // error here echo openssl_pkcs7_verify( $pa.signed.txt, PKCS7_BINARY, $pa.'test3.crt', array($pa.'test.crt'), $pa.'test.crt', $pa.'content.eml' ); // error:21075075:PKCS7 routines:PKCS7_verify:certificate verify error while ($msg = openssl_error_string()) echo $msg . br /\n; ? Expected result: 1 Actual result: -- error:21075075:PKCS7 routines:PKCS7_verify:certificate verify error -- Edit this bug report at https://bugs.php.net/bug.php?id=50776edit=1
#50776 [NEW]: openssl_pkcs7_verify
From: gufophp at gmail dot com Operating system: win32 apache PHP version: 5.3.1 PHP Bug Type: OpenSSL related Bug description: openssl_pkcs7_verify Description: PKCS7_verify:certificate verify error Reproduce code: --- ?php $body = EOD You have my authorization to spend $10,000 on dinner expenses. The CEO EOD; $key = file_get_contents(test.key); $crt = file_get_contents(test.crt); $file = tempnam('', 'mail'); file_put_contents($file, $body); $signed = tempnam(, signed); // view 1 echo openssl_x509_check_private_key($crt, array($key,gufogufogufogufogufogufo)) ; while ($msg = openssl_error_string()) echo $msg . br /\n; echo hr /; // view 1 $arr = array(To = j...@example.com, // keyed syntax From: HQ c...@example.com, // indexed syntax Subject = Eyes only); echo openssl_pkcs7_sign($file, $signed, $crt, array($key, gufogufogufogufogufogufo),$arr); while ($msg = openssl_error_string()) echo $msg . br /\n; echo hr /; $body = file_get_contents($signed); file_put_contents(signed.txt,$body); $pa = C:\\Programmi\\Apache Software Foundation\\Apache2.2\\htdocs\sign\\; // error here echo openssl_pkcs7_verify( $pa.signed.txt, PKCS7_BINARY, $pa.'test3.crt', array($pa.'test.crt'), $pa.'test.crt', $pa.'content.eml' ); // error:21075075:PKCS7 routines:PKCS7_verify:certificate verify error while ($msg = openssl_error_string()) echo $msg . br /\n; ? Expected result: 1 Actual result: -- error:21075075:PKCS7 routines:PKCS7_verify:certificate verify error -- Edit bug report at http://bugs.php.net/?id=50776edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50776r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50776r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50776r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50776r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50776r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50776r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50776r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50776r=needscript Try newer version: http://bugs.php.net/fix.php?id=50776r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50776r=support Expected behavior: http://bugs.php.net/fix.php?id=50776r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50776r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50776r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50776r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50776r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=50776r=dst IIS Stability: http://bugs.php.net/fix.php?id=50776r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50776r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50776r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50776r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50776r=mysqlcfg
#50293 [NEW]: openssl_****_export_to_file
From: gufophp at gmail dot com Operating system: win32 apache PHP version: 5.2.11 PHP Bug Type: OpenSSL related Bug description: openssl__export_to_file Description: incorrect path save export file Reproduce code: --- pre kpe1.php ? set_time_limit(0); $ssl_configargs = array(digest_alg = OPENSSL_ALGO_SHA1, private_key_bits = 384,encrypt_key = false,basicConstraints = CA:true,keyUsage = cRLSign, keyCertSign, nsCertType = sslCA, emailCA); $dn = array(countryName = 'IT',stateOrProvinceName = 'Italy', localityName = 'city',organizationName = 'org', organizationalUnitName = 'unit',commonName = 'name' ,emailAddress = 'mail' ); $numberofdays = '365'; $pkey = openssl_pkey_new( $ssl_configargs ); $csr = openssl_csr_new( $dn, $privkey, $ssl_configargs ); $sscert = openssl_csr_sign( $csr, null, $privkey, $numberofdays ); openssl_csr_export( $csr, $csrout ); openssl_x509_export( $sscert, $certout ); openssl_x509_export_to_file ($sscert ,'crt_509_sk.crt',false); openssl_pkey_export( $privkey, $pkeyout, $configargs['licence_pwd' ]); openssl_pkey_export_to_file($privkey,'crt_509_pk.pem'); Expected result: [dir] kpe1.php crt_509_sk.crt crt_509_pk.pem Actual result: -- C:\Programmi\Apache Software Foundation\Apache2.2 . crt_509_sk.crt crt_509_pk.pem . -- Edit bug report at http://bugs.php.net/?id=50293edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50293r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50293r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50293r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50293r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50293r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50293r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50293r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50293r=needscript Try newer version: http://bugs.php.net/fix.php?id=50293r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50293r=support Expected behavior: http://bugs.php.net/fix.php?id=50293r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50293r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50293r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50293r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50293r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=50293r=dst IIS Stability: http://bugs.php.net/fix.php?id=50293r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50293r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50293r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50293r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50293r=mysqlcfg