Skip to content

Instantly share code, notes, and snippets.

@andremalveira
Last active December 3, 2021 22:31
Show Gist options
  • Save andremalveira/6f50a2059ce521cfa6a285eee3c174b1 to your computer and use it in GitHub Desktop.
Save andremalveira/6f50a2059ce521cfa6a285eee3c174b1 to your computer and use it in GitHub Desktop.
cURL error 60: SSL certificate problem fix - Firebase Realtime Database - PHP - wamp

Problem Fix

Error: Kreait\Firebase\Exception\Database\DatabaseError: cURL error 60: SSL certificate problem: unable to get local issuer certificate

English

  • Download this file: http://curl.haxx.se/ca/cacert.pem

  • Put this file in the C:\wamp64\bin\php[version of your php]

  • Open php.ini and search for: ;curl.cainfo

  • Change to: curl.cainfo = C:\wamp64\bin\php[version of your php]\cacert.pem

  • Be sure to remove the semicolon at the beginning of the ;curl.cainfo line

  • Save the php.ini changes, restart WampServer and you're done!

Português

  • Baixe este arquivo: http://curl.haxx.se/ca/cacert.pem

  • Coloque este arquivo na C:\wamp64\bin\php[versão do seu php]

  • Abra php.ini e procure por: ;curl.cainfo

  • Altere para: curl.cainfo = C:\wamp64\bin\php[versão do seu php]\cacert.pem

  • Certifique-se de remover o ponto-e-vírgula no início da linha ;curl.cainfo

  • Salve as alterações php.ini, reinicie o WampServer e pronto!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment