--TEST-- CURLOPT_SSL* basic client auth tests --EXTENSIONS-- curl --SKIPIF-- 0) die("skip couldn't locate openssl binary"); if (PHP_OS_FAMILY === 'Windows') die('skip not for Windows'); if (PHP_OS_FAMILY === 'Darwin') die('skip Fails intermittently on macOS'); if (PHP_OS === 'FreeBSD') die('skip proc_open seems to be stuck on FreeBSD'); $curl_version = curl_version(); if ($curl_version['version_number'] < 0x074700) { die("skip: blob options not supported for curl < 7.71.0"); } ?> --FILE-- --EXPECT-- case 1: client cert and key from string bool(true) bool(true) bool(true) bool(true) client cert subject in response case 2: empty client cert and key from string bool(true) bool(true) bool(true) bool(true) client cert subject not in response CURL ERROR: 58 case 3: client cert and empty key from string bool(true) bool(true) bool(true) bool(true) client cert subject not in response CURL ERROR: 58 case 4: client cert and key from file bool(true) bool(true) bool(true) bool(true) client cert subject in response case 5: issuer cert from file bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) client cert subject in response case 6: issuer cert from string bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) client cert subject in response case 7: empty issuer cert from string bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) client cert subject not in response CURL ERROR: 83