xref: /PHP-5.6/ext/openssl/tests/bug69882.phpt (revision 2ff3dafc)
1--TEST--
2Bug #69882: OpenSSL error "key values mismatch" after openssl_pkcs12_read with extra certs
3--SKIPIF--
4<?php
5if (!extension_loaded("openssl")) die("skip");
6?>
7--FILE--
8<?php
9$p12 = file_get_contents(__DIR__.'/p12_with_extra_certs.p12');
10
11$result = openssl_pkcs12_read($p12, $cert_data, 'qwerty');
12var_dump($result);
13var_dump(openssl_error_string());
14?>
15--EXPECTF--
16bool(true)
17bool(false)
18