summaryrefslogtreecommitdiff
path: root/ext/openssl/tests/CertificateGenerator.inc
Commit message (Collapse)AuthorAgeFilesLines
* Convert resources to objects in ext/opensslMáté Kocsis2020-08-011-1/+1
| | | | | | Closes GH-5860 Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
* Generate temporary config file when generating certificatesNikita Popov2020-06-191-24/+47
| | | | | The putenv trick doesn't work on ZTS Windows, so generate a new openssl config every time.
* Add SubjectAltName support to certificate generatorNikita Popov2020-06-181-5/+19
| | | | | | | And switch tests using SAN certificates to the generator. This is ugly, but there doesn't seem to be a more direct way to privide SAN in PHP.
* Use sha256 as digest algorithm in certificate generatorNikita Popov2020-06-171-1/+2
| | | | | | | | This makes the generated certificates compatible with security level 2, which is apparently the default on Ubuntu 20.04. Unfortunately this does not fix all tests, because some are using pre-generated certificates.
* Generate certs for openssl tests on the flyAlexander Kurilo2019-01-101-0/+116
The idea is to create an easy way to provide a certificate that never expires. In order to make it cross-platform, PHP is used rather than openssl CLI app. Using openssl to generate certificates for tests that test openssl might be not the best idea but pros seem to outweight cons that this "recursice dependency" adds