xref: /PHP-8.1/ext/openssl/tests/bug74022.phpt (revision 74859783)
1--TEST--
2Bug #74022 PHP Fast CGI crashes when reading from a pfx file with valid password
3--EXTENSIONS--
4openssl
5--FILE--
6<?php
7$pfx = __DIR__ . DIRECTORY_SEPARATOR . "bug74022.pfx";
8$cert_store = file_get_contents($pfx);
9
10var_dump(openssl_pkcs12_read($cert_store, $cert_info, "csos"));
11var_dump(openssl_error_string());
12?>
13--EXPECT--
14bool(true)
15bool(false)
16