настроить CURL соединение по ssl сертификатам в php коде

Задание в архиве

есть php код (нерабочий).

$ch = curl_init();


curl_setopt($ch, CURLOPT_URL, 'https://icrs.nbki.ru/products/B2BRequestServlet');
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_PORT , 443);
curl_setopt($ch, CURLOPT_SSLVERSION,3);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSLCERT, "C:/WebServer/home/fastcomputers.myjino.dev/www/admin/bat/CryptoProPub2011.pem");
curl_setopt($ch, CURLOPT_CAINFO, "C:/WebServer/home/fastcomputers.myjino.dev/www/admin/bat/ICRS_NBKI_RU_Public_Key_2011.pem");
curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, 'ALL');
curl_setopt($ch, CURLOPT_SSLENGINE, 'gost');

$response...

Бюджет 1 Руб
Срок 1 день
Оплата Без предоплаты
Категория Веб-разработка и IT
Просмотры 1
Опубликовано 11.01.2016

Войдите, чтобы увидеть полную информацию.