furkankadioglu / efatura

eArşiv üzerinden Fatura Oluşturucu

Home Page:https://furkankadioglu.github.io/efatura/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ssl hatası

hadiozkan opened this issue · comments

( ! ) Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: self signed certificate in certificate chain (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://earsivportaltest.efatura.gov.tr/earsiv-services/esign in C:\wamp64\www\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 211

1 | 0.0012 | 408520 | {main}( ) | ...\index.php:0
2 | 0.0066 | 440760 | furkankadioglu\eFatura\InvoiceManager->setTestCredentials( ) | ...\index.php:19
3 | 0.0066 | 440856 | GuzzleHttp\Client->post( ) | ...\InvoiceManager.php:181
4 | 0.0066 | 440856 | GuzzleHttp\Client->request( ) | ...\ClientTrait.php:95
5 | 0.1025 | 629200 | GuzzleHttp\Promise\RejectedPromise->wait( ) | ...\Client.php:187

bu şekilde hata alıyorum yardımcı olurmusun

localde çözdüm çalışıyor
localde php ini içinde curl.cainfo ="C:\wamp64\bin\php\cacert-2021-10-26.pem" yapınca çalışıyor

ama hosting firmasında bu işlemi yapamam

nasıl bir yol izlemeliyim

InvoiceManager.php satır 121'e
"verify" => false,
ekleyerek çalıştırabildim. ama çözüm bu mudur bilemiyorum.