SSL error
Error creating resource: [message] fopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed [file] /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php [line] 324 [message] fopen(): Failed to enable crypto [file] /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php [line] 324 [message] fopen(https://jurayed.uz/bs/hs/peremesheniya?auth%5B0%5D=wsDistribution&auth%5B1%5D=wsDistribution&DocID=75&PoluchatelID=3&PoluchatelName=%D0%A8.%D0%A0%D1%83%D1%81%D1%82%D0%B0%D0%B2%D0%B5%D0%BB%D0%B8&MassivSeriy%5B0%5D%5BSeriya%5D=BSOF21AJtzjF7634&MassivSeriy%5B1%5D%5BSeriya%5D=BSOF21cVg27G7635): failed to open stream: operation failed [file] /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php [line] 324
I get this error, please help asap. Code:
$endpoint = "https://*****.com";
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', $endpoint, ['query' => [
'DocData' => $shift->created_at,
'DocID' => $shift->id,
'FromID' => optional($shift->from)->id,
'FromlName' => optional($shift->from)->name,
'ToID' => $shift->to->id,
'ToName' => $shift->to->name,
"MassivSeriy" => $data,
]]);
// url will be: http://my.domain.com/test.php?key1=5&key2=ABC;
$statusCode = $response->getStatusCode();
return $content = $response->getBody();
Please or to participate in this conversation.