aaPanel_Kern
I have a laravel application and i deployed it to contabo and i installed the aapanel .
the problem is when i want to make 0auth to an api from my applicaion i get erroer
this is the error:
"SSL: no alternative certificate subject name matches target host name 'whatsapp.ebda3soft.com'"
in the local it work fine "i used Wampp server "
this is the code :
'
$baseApi = env('BASE_API');
$curl = curl_init();
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
try{
$params = [
CURLOPT_URL => $baseApi . '/connect/token',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_POST => 1,
CURLOPT_NOBODY => false,
CURLOPT_HTTPHEADER => array(
"cache-control: no-cache",
"content-type: application/x-www-form-urlencoded",
"accept: */*",
"accept-encoding: gzip, deflate",
),
CURLOPT_POSTFIELDS => "grant_type=password&username=" . $username . "&password=" . $password . "&client_id=Base_App"
];
curl_setopt_array($curl, $params);
$response = curl_exec($curl);
$error = curl_error($curl);
ddd($error);
curl_close($curl);
return $response;
}
catch(exception $e){
return null;
}
`