aaP_bilgicise
How can you solved? I have a problem with SSL api. I got NULL everytime
` public function addLetsEncrypt() {
$url = $this->BT_PANEL . '/acme?action=apply_cert_api';
$p_data = $this->GetKeyData();
$p_data['id'] = 78;
$p_data['domains'] = ["something.example.com"];
$p_data['auto_wildcard'] = "1";
$p_data['auth_to'] = "/www/wwwroot/something.example.com";
$p_data['auth_type'] = "file";
$result = $this->HttpPostCookie($url, $p_data);
if ($result === false) {
return ['status' => false, 'message' => 'Nem sikerült kapcsolódni az API-hoz.'];
}
$decodedResult = json_decode($result, true);
if ($decodedResult === null) {
file_put_contents('api_debug.log', $result, FILE_APPEND); // Debug napló
return ['status' => false, 'message' => 'Érvénytelen JSON válasz: ' . $result];
}
return $decodedResult;
}`