Skip to content

Commit

Permalink
Update WildcardIssuer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bobicloudvision committed Jan 30, 2025
1 parent 022bc67 commit a178a72
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/Modules/SSLManager/App/Filament/Pages/WildcardIssuer.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,17 @@ public function checkCertificateFilesExist($domain)

public function requestCertificates() {

$wildcardDomain = $this->wildcardDomain;
$wildcardDomain = str_replace('*.', '', $wildcardDomain);

if (file_exists($this->installLogFilePath)) {
unlink($this->installLogFilePath);
}

$acmeCommand = "bash /usr/local/phyre/web/Modules/LetsEncrypt/shell/acme.sh --register-account -m $this->masterEmail ";
$acmeCommand = shell_exec($acmeCommand);

$acmeCommand = "bash /usr/local/phyre/web/Modules/LetsEncrypt/shell/acme.sh --issue -d '*.$this->wildcardDomain' --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please";
$acmeCommand = "bash /usr/local/phyre/web/Modules/LetsEncrypt/shell/acme.sh --issue -d '*.$wildcardDomain' --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please";
$acmeCommand = shell_exec($acmeCommand . " >> $this->installLogFilePath &");

return [
Expand Down

0 comments on commit a178a72

Please sign in to comment.