[php-src] Issue #20175: default_bits=1024 causes test failure with OpenSSL 3.2+

From: Date: Wed, 15 Oct 2025 08:39:20 +0000
Subject: [php-src] Issue #20175: default_bits=1024 causes test failure with OpenSSL 3.2+
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-251065@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/20175 Author: velemas ### Description ext/openssl/tests/gh10495.phpt test fails on systems with OpenSSL 3.2+ if the default openssl.cnf is not provided. This is caused by the default_bits=1024 setting in ext/openssl/tests/CertificateGenerator.inc. OpenSSL starting from 3.2 requires 2048-bit keys on the default security level 2 (https://docs.openssl.org/3.2/man3/SSL_CTX_set_security_level/#description). <img width="1469" height="400" alt="Image" src="https://github.com/user-attachments/assets/2a8e14e7-60c4-420f-ba40-b7dc7d3defdf" /> ### PHP Version ```plain PHP 8.4.13 ``` ### Operating System WSL with Arch Linux

« previous php.bugs (#251065) next »