Hi,
I want to get acces to an ownCloud (via https) directory using Sabre/Dav. I already did all the development guide.
I installed the xampp. SSL is on port 443.
I tried the following code, which worked using
google.de as baseUri.
<?php
use Sabre\DAV\Client;
include 'vendor/autoload.php';
$settings = array(
'baseUri' => 'https://owncloud.xyz.de/remote.php/webdav/',
'userName' => 'userName',
'password' => 'password'
//'proxy' => ''
);
$client = new Client($settings);
$response = $client->request('GET');
?>
The follwong exception has been thrown:Fatal error: Uncaught exception 'Sabre\HTTP\ClientException' with message 'SSL certificate problem: unable to get local issuer certificate' in C:\xampp\htdocs\dev\webver\ws\vendor\sabre\http\lib\Client.php:354 Stack trace: #0 C:\xampp\htdocs\dev\webver\ws\vendor\sabre\http\lib\Client.php(101): Sabre\HTTP\Client->doRequest(Object(Sabre\HTTP\Request)) #1 C:\xampp\htdocs\dev\webver\ws\vendor\sabre\dav\lib\DAV\Client.php(341): Sabre\HTTP\Client->send(Object(Sabre\HTTP\Request)) #2 C:\xampp\htdocs\dev\webver\ws\inovelRequest.php(19): Sabre\DAV\Client->request('GET') #3 {main} thrown in C:\xampp\htdocs\dev\webver\ws\vendor\sabre\http\lib\Client.php on line 354
Why does it not work using https?
Does anybody have an idea?
Thanks!