Hi, I am trying to call an API by cURL then I get an error
cURL Error #SSL certificate problem: unable to get local issuer certificate
to solve this issue I download a file and put in the ssl directory here is the path for the directory
C:\wamp\bin\php\php5.6.25\extras\ssl\cacert.pem
now click over to WAMP icon then select php and click on "php.ini" then it opened in my text editor, here i make changes to
openssl.cafile , here i give path of cacert.pem file
openssl.cafile="C:\wamp\bin\php\php5.6.25\extras\ssl\cacert.pem"
and remove ; before this line.
Now restart all service from WAMP menu(here i restart only services not WAMP) after that everything is fine and its working
When i exit WAMP server then i got the same error
cURL Error #SSL certificate problem: unable to get local issuer certificate
now I again open php.ini then i see the changes that i made there are discarted and php.ini file is look without any changes
cURL Error #SSL certificate problem: unable to get local issuer certificate
to solve this issue I download a file and put in the ssl directory here is the path for the directory
C:\wamp\bin\php\php5.6.25\extras\ssl\cacert.pem
now click over to WAMP icon then select php and click on "php.ini" then it opened in my text editor, here i make changes to
openssl.cafile , here i give path of cacert.pem file
openssl.cafile="C:\wamp\bin\php\php5.6.25\extras\ssl\cacert.pem"
and remove ; before this line.
Now restart all service from WAMP menu(here i restart only services not WAMP) after that everything is fine and its working
When i exit WAMP server then i got the same error
cURL Error #SSL certificate problem: unable to get local issuer certificate
now I again open php.ini then i see the changes that i made there are discarted and php.ini file is look without any changes