Before I start please note the following: This question ist not about parsing like e.g. json objects. It's about the Parse backend.
I've been trying to access my Parse backend via PHP. The Installation of the Parse SDK is done and this Part works as far as I can tell. But when I try to access my Parse backend, I recieve the following PHP error:
Fatal error: Uncaught exception 'Parse\ParseException' with message 'SSL certificate problem, verify that the CA cert is OK.
Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed' in C:\xampp\htdocs\parsetest\vendor\parse\php-sdk\src\Parse\ParseClient.php:264
Stack trace:
#0 C:\xampp\htdocs\parsetest\vendor\parse\php-sdk\src\Parse\ParseObject.php(927): Parse\ParseClient::_request('POST', '/1/classes/Test...', NULL, '{"foo":"bar"}', false)
#1 C:\xampp\htdocs\parsetest\vendor\parse\php-sdk\src\Parse\ParseObject.php(838): Parse\ParseObject::deepSave(Object(Parse\ParseObject), false)
#2 C:\xampp\htdocs\parsetest\index.php(15): Parse\ParseObject->save()
#3 {main} thrown in C:\xampp\htdocs\parsetest\vendor\parse\php-sdk\src\Parse\ParseClient.php on line 264
Does anyone know how to deal with this error? Here are some further informations:
My development environment:
- Win10
- XAMPP (with PHP 5.6)
What I've already done:
- Installed composer
- Installed Parse SDK (With the Parse PHP getting started Tutorial)
- Installed an self generated OpenSSL certificate like according to this tutorial
Currently my PHP file for testing the Parse connection looks like this:
<?php
require 'vendor/autoload.php';
use Parse\ParseClient;
ParseClient::initialize('some', 'Parse', 'information');
use Parse\ParseObject;
$testObject = ParseObject::create("TestObject");
$testObject->set("foo", "bar");
$testObject->save();
?>