mlevent / fatura

GİB e-Arşiv Portal e-Fatura, e-SMM, e-Müstahsil Oluşturucu
https://mlevent.github.io/fatura
MIT License
80 stars 20 forks source link

curl ssl hatası unsafe legacy renegotiation #56

Closed ofsahin closed 10 months ago

ofsahin commented 10 months ago

gib'in işleri aşağıdaki hatayı alan varsa

PHP Fatal error: Uncaught Mlevent\Fatura\Exceptions\BadResponseException: cURL error 35: OpenSSL/3.0.9: error:0A000152:SSL routines::unsafe legacy renegotiation disabled (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://earsivportal.efatura.gov.tr/earsiv-services/assos-login

openssl ayarlarından unsafe legacy renegotiation'ı enable ederek çözebilirler

sudo nano /etc/ssl/openssl.cnf
Then, add the following line to the top of the file:
openssl_conf = openssl_init
Next, at the bottom of the file, add:
[openssl_init]
ssl_conf = ssl_sect
[ssl_sect]
system_default = system_default_sect
[system_default_sect]
Options = UnsafeLegacyRenegotiation
mlevent commented 10 months ago

Teşekkürler. Connection refused for URI... hatası da aynı sebepten; #17

birkanozdamar commented 8 months ago

@mlevent bu şekilde eklendi ama düzelmedi openssl.txt

en üste eklendi: openssl_conf = openssl_init en alta eklendi: [openssl_init] ssl_conf = ssl_sect [ssl_sect] system_default = system_default_sect [system_default_sect] Options = UnsafeLegacyRenegotiation