api-php-lib icon indicating copy to clipboard operation
api-php-lib copied to clipboard

How to install let's encrypt or SSL

Open sihamzsiham opened this issue 5 years ago • 2 comments

Hello, How to install certifiact let's encrypt or SSL for a site using Pesk API ? I can't find a solution.

sihamzsiham avatar Jan 02 '20 13:01 sihamzsiham

Hello, Since then @sihamzsiham , did you find any solution ? Thanks

fadupla avatar May 11 '21 16:05 fadupla

After encountering the same problem, our team came up with the following solution for enabling letsencrypt SSL (although using cli). It makes use of the cli endpoint offered by the REST JSON api. $response = Http::timeout(360)->withBasicAuth($user, $pass)->post("https://panel:8443/api/v2/cli/extension/call", [ "params" => [ "--exec", "letsencrypt", "cli.php", "-m", $letsEncryptEmail, "-d", $domainUrl ] ]);

TimGeDev avatar Mar 30 '22 15:03 TimGeDev