Mercurial > hg > nginx-tests
diff ssl_ocsp.t @ 1945:0b5ec15c62ed
Tests: compatibility with "openssl" app from OpenSSL 3.2.0.
OpenSSL 3.2.0's "openssl" app generates X.509v3 certificates unless explicitly
asked not to. Such certificates, even self-signed ones, cannot be used to sign
other certificates without CA:TRUE explicitly set in the basicConstraints
extension. As a result, tests doing so are now failing.
Fix is to provide basicConstraints with CA:TRUE for self-signed root
certificates used in "openssl ca" calls.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 29 Jan 2024 00:34:16 +0300 |
parents | 0e1865aa9b33 |
children | c924ae8d7104 |
line wrap: on
line diff
--- a/ssl_ocsp.t +++ b/ssl_ocsp.t @@ -116,7 +116,10 @@ my $p = port(8081); default_bits = 2048 encrypt_key = no distinguished_name = req_distinguished_name +x509_extensions = myca_extensions [ req_distinguished_name ] +[ myca_extensions ] +basicConstraints = critical,CA:TRUE EOF $t->write_file('ca.conf', <<EOF);