vinicinbgs / autentique-v2

PHP Package for Autentique API-v2 | Ref: https://docs.autentique.com.br/api/
https://beadev.net/autentique-v2/
39 stars 19 forks source link

[docs] API return false #2

Closed vinicinbgs closed 2 years ago

vinicinbgs commented 4 years ago

When you dont have a cacert.pem (Certified) configured in php.ini, its possible return false.

How fix? Use in CURL options

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER , false)
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST , false)

Or,

Download latest version in https://curl.haxx.se/docs/caextract.html and configure in php.ini

curl.cainfo="/etc/php7.0/cacert.pem"
openssl.cafile="/etc/php7.0/cacert.pem"