Test: /ext/openssl/tests/bug65729.phpt - Version 7.4.22        

Bug #65729 CN_match gives false positive
Submitted: 2013-09-21 08:27:27 Modified: 2013-10-08 14:02:09
From: datibbaw Assigned: mike
Status: Closed Package: OpenSSL related
PHP Version: master-Git-2013-09-21 (Git) OS: Linux

There are 7 different diffs reported by users for this test.

Count Diff
2 (25%)
001+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: 002+ error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /usr/src/php-7.4.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 001- Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.test.com.sg' in %s on line %d 007- resource(%d) of type (stream) 008- resource(%d) of type (stream) 009+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: 010+ error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /usr/src/php-7.4.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 011+ 012+ Warning: stream_socket_client(): Failed to enable crypto in /usr/src/php-7.4.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 013+ 014+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/src/php-7.4.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 015+ bool(false) 016+ 017+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: 018+ error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /usr/src/php-7.4.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 019+ 020+ Warning: stream_socket_client(): Failed to enable crypto in /usr/src/php-7.4.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 021+ 022+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/src/php-7.4.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 023+ bool(false) 024+ 025+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: 026+ error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /usr/src/php-7.4.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 010- Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.bar.test.com' in %s on line %d
1 (13%)
001+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: 002+ error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /home/daneel/Descargas/SOURCE/php-7.4.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 001- Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.test.com.sg' in %s on line %d 007- resource(%d) of type (stream) 008- resource(%d) of type (stream) 009+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: 010+ error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /home/daneel/Descargas/SOURCE/php-7.4.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 011+ 012+ Warning: stream_socket_client(): Failed to enable crypto in /home/daneel/Descargas/SOURCE/php-7.4.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 013+ 014+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /home/daneel/Descargas/SOURCE/php-7.4.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 015+ bool(false) 016+ 017+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: 018+ error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /home/daneel/Descargas/SOURCE/php-7.4.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 019+ 020+ Warning: stream_socket_client(): Failed to enable crypto in /home/daneel/Descargas/SOURCE/php-7.4.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 021+ 022+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /home/daneel/Descargas/SOURCE/php-7.4.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 023+ bool(false) 024+ 025+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: 026+ error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /home/daneel/Descargas/SOURCE/php-7.4.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 010- Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.bar.test.com' in %s on line %d
1 (13%)
001+ Warning: openssl_x509_export_to_file(): cannot get cert from parameter 1 in /usr/local/php-7.4.22/ext/openssl/tests/CertificateGenerator.inc on line 82 001- Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.test.com.sg' in %s on line %d 003+ Warning: openssl_csr_new(): private key length is too short; it needs to be at least 384 bits, not 0 in /usr/local/php-7.4.22/ext/openssl/tests/CertificateGenerator.inc on line 128 004+ 005+ Warning: openssl_csr_new(): Unable to generate a private key in /usr/local/php-7.4.22/ext/openssl/tests/CertificateGenerator.inc on line 128 006+ 007+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in /usr/local/php-7.4.22/ext/openssl/tests/CertificateGenerator.inc on line 132 003- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 005- Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in %s on line %d 006- bool(false) 007- resource(%d) of type (stream) 008- resource(%d) of type (stream) 009- 009+ Fatal error: Uncaught Exception: Failed to create certificate in /usr/local/php-7.4.22/ext/openssl/tests/CertificateGenerator.inc:135 010+ Stack trace: 011+ #0 %s/bug65729.php(44): CertificateGenerator->saveNewCertAsFileWithKey('*.test.com', '/usr/local/php-...') 012+ #1 {main} 013+ thrown in /usr/local/php-7.4.22/ext/openssl/tests/CertificateGenerator.inc on line 135 010- Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.bar.test.com' in %s on line %d 011- 012- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 013- 014- Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in %s on line %d 015- bool(false)
1 (13%)
001+ PHP Warning: PHP Startup: gnupg: Unable to initialize module 002+ Module compiled with module API=20180731 003+ PHP compiled with module API=20190902 004+ These options need to match 005+ in Unknown on line 0 006+
1 (13%)
001+ PHP Warning: PHP Startup: curl: Unable to initialize module 002+ Module compiled with module API=20131226 003+ PHP compiled with module API=20190902 004+ These options need to match 005+ in Unknown on line 0 006+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/modules/mysqli.so' (tried: /usr/local/php/modules/mysqli.so (/usr/local/php/modules/mysqli.so: undefined symbol: _zval_ptr_dtor), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902//usr/local/php/modules/mysqli.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902//usr/local/php/modules/mysqli.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 007+ PHP Warning: PHP Startup: mcrypt: Unable to initialize module 008+ Module compiled with module API=20131226 009+ PHP compiled with module API=20190902 010+ These options need to match 011+ in Unknown on line 0 012+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/modules/openssl.so' (tried: /usr/local/php/modules/openssl.so (/usr/local/php/modules/openssl.so: undefined symbol: zval_used_for_init), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902//usr/local/php/modules/openssl.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902//usr/local/php/modules/openssl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 013+ PHP Warning: PHP Startup: zip: Unable to initialize module 014+ Module compiled with module API=20180731 015+ PHP compiled with module API=20190902 016+ These options need to match 017+ in Unknown on line 0 001- Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.test.com.sg' in %s on line %d 002- 003- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 004- 005- Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in %s on line %d 006- bool(false) 007- resource(%d) of type (stream) 008- resource(%d) of type (stream) 019+ Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.test.com.sg' in /usr/local/src/php-7.4.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 020+ 021+ Warning: stream_socket_client(): Failed to enable crypto in /usr/local/src/php-7.4.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 022+ 023+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/local/src/php-7.4.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 024+ bool(false) 025+ resource(21) of type (stream) 026+ resource(23) of type (stream) 027+
1 (13%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'imagick' (tried: /opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick (Cannot open "/opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick"), /opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick.so (Shared object "libMagickWand-7.so.7" not found, required by "imagick.so")) in Unknown on line 0 002+ PHP Warning: PHP Startup: Unable to load dynamic library 'imagick' (tried: /opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick (Cannot open "/opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick"), /opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick.so (Shared object "libMagickWand-7.so.7" not found, required by "imagick.so")) in Unknown on line 0 003+ PHP Warning: Module 'zip' already loaded in Unknown on line 0 004+
1 (13%)
001+ Cannot load the ionCube PHP Loader - it was built with configuration API320180731,NTS, whereas running engine is API320190902,NTS 002+ Zend OPcache requires Zend Engine API version 320180731. 003+ The Zend Engine API version 320190902 which is installed, is newer. 004+ Contact Zend Technologies at http://www.zend.com/ for a later version of Zend OPcache. 005+ 006+