diff --git a/composer.json b/composer.json index a6c3c78..6f10f9f 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "corsinvest/cv4pve-api-php", "description": "Corsinvest Proxmox VE Client API PHP", - "version": "8.1.3", + "version": "8.1.4", "keywords": [ "Proxmox", "Proxmox VE", diff --git a/src/PveClientBase.php b/src/PveClientBase.php index ae7d898..dbe56a0 100644 --- a/src/PveClientBase.php +++ b/src/PveClientBase.php @@ -70,7 +70,7 @@ class PveClientBase /** * @ignore */ - private $verifyCertificate = false; + private $validateCertificate = false; /** * Client constructor. @@ -188,25 +188,25 @@ public function getDebugLevel() } /** - * Sets the Verify Certificate + * Sets the Validate Certificate. * - * @param bool $verifyCertificate + * @param bool $validateCertificate * @return PveClientBase */ - public function setVerifyCertificate($verifyCertificate) + public function setValidateCertificate($validateCertificate) { - $this->verifyCertificate = $verifyCertificate; + $this->validateCertificate = $validateCertificate; return $this; } /** - * Returns verify Certificate. + * Returns Validate Certificate. * * @return bool Verify Certificate. */ - public function getVerifyCertificate() + public function getValidateCertificate() { - return $this->verifyCertificate; + return $this->validateCertificate; } /** @@ -397,7 +397,7 @@ private function executeAction($resource, $method, $parameters = []) curl_setopt($prox_ch, CURLOPT_HEADER, true); curl_setopt($prox_ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($prox_ch, CURLOPT_COOKIE, "PVEAuthCookie=" . $this->ticketPVEAuthCookie); - curl_setopt($prox_ch, CURLOPT_SSL_VERIFYPEER, $this->verifyCertificate); + curl_setopt($prox_ch, CURLOPT_SSL_VERIFYPEER, $this->validateCertificate); curl_setopt($prox_ch, CURLOPT_SSL_VERIFYHOST, false); if ($this->timeout != 0) {