After going crazy for about two hours to solve this simple error: “Peer certificate cannot be authenticated with known CA certificates using PHP OAuth extension” I searched for many queries like “unable to get local issuer certificate” or “cacert.pem” and finally figured it out. Show If you search online you will run into a lot of cacert.pem solutions but its actually not the right one. 1) Download the certificate file like wget http://curl.haxx.se/ca/cacert.pem2) Copy the downloaded file and paste to the following directory and make sure the read/write permission are setup correctly. /WHATEVER-APP-YOU-ARE-USING/openssl/cacert.pem(replace the first folders with your own app.) For example Im using AMPPS so my file directory is different than MAMP or XMPP. Very imporant to get the correct path here. 3)Add the following line to your php.ini (make sure its the correct version and dont just drop it the the first one you see there) openssl.cafile=/Applications/AMPPS/php-5.6/cacert.pem4) Restart the Apache Server and you are good to go. If you cant get this going then go back and see what you did wrong because it works
Symptom
Read more... EnvironmentSAP Cloud Platform Integration for Data Services ProductSAP Cloud Integration for data services all versions Keywordsloader, ssl, security, version, HCI, CA, certificate, 60, cert, soap, rest , KBA , EIM-HCI , SAP HANA Cloud Integration (Data Services) , LOD-HCI-DS , HANA Cloud Integration for Data Services , Problem About this pageThis is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required). Search for additional resultsVisit SAP Support Portal's SAP Notes and KBA Search. |