Skip to content

Commit ac505f8

Browse files
Update WildcardDomain.php
1 parent 61cef2a commit ac505f8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

web/Modules/LetsEncrypt/Filament/Clusters/LetsEncrypt/Pages/WildcardDomain.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,15 @@ public function installCertificates()
106106
$masterDomain = new MasterDomain();
107107
$masterDomain->domain = setting('general.wildcard_domain');
108108

109-
$acmeCommand = "bash /usr/local/phyre/web/Modules/LetsEncrypt/shell/acme.sh --renew -d '*.$masterDomain->domain' --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please";
110-
$acmeCommand = shell_exec($acmeCommand);
109+
// $acmeCommand = "bash /usr/local/phyre/web/Modules/LetsEncrypt/shell/acme.sh --renew -d '*.$masterDomain->domain' --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please";
110+
// $acmeCommand = shell_exec($acmeCommand);
111+
112+
$acmeCommand = 'And the full-chain cert is in';
111113

112114
if (str_contains($acmeCommand, 'And the full-chain cert is in')) {
113115

114116
$checkCertificateFilesExist = $this->checkCertificateFilesExist($masterDomain->domain);
117+
115118
if (isset($checkCertificateFilesExist['sslFiles']['certificateContent'])) {
116119

117120
$findWildcardSsl = DomainSslCertificate::where('domain', '*.'.$masterDomain->domain)->first();
@@ -122,7 +125,7 @@ public function installCertificates()
122125
$findWildcardSsl->is_active = 1;
123126
$findWildcardSsl->is_wildcard = 1;
124127
$findWildcardSsl->is_auto_renew = 1;
125-
$findWildcardSsl->provider = 'letsencrypt';
128+
$findWildcardSsl->provider = 'AUTO_SSL';
126129
}
127130

128131
$findWildcardSsl->certificate = $checkCertificateFilesExist['sslFiles']['certificateContent'];

0 commit comments

Comments
 (0)