hi getting error when running application on xampp on mac os sierra 10.2
fatal error: uncaught exception 'exception' message 'http error (60): ssl certificate problem: self signed certificate in certificate chain'
not sure if openssl.cafile=/applications/xampp/xamppfiles/share/curl/curl-ca-bundle.crt
i have no idea do?
cheers
you're trying access resource on https , remote server showing untrusted certificate.
it might mean installation outdated, can follow instructions on anwser https://stackoverflow.com/a/41274288/3474436.
if you're on dev environment disable these checks these 2 settings :
curl_setopt($ch, curlopt_ssl_verifypeer, false); curl_setopt($ch, curlopt_ssl_verifyhost, false);
but @ own risk, won't prevent mitm attack. therefore may instead add certificate keystore if you're sure can trust it.
if remote server you're trying access belongs you, should obtain certificate, instance https://letsencrypt.org/ provides free trusted certificates.
Comments
Post a Comment