From 1eaf411cb4d52518f9023f29979213847a00394a Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Mon, 17 Jan 2022 19:56:57 -0700 Subject: [PATCH] node: lowercase fqdn in letsencrypt path (#3890) --- app/Models/Node.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Models/Node.php b/app/Models/Node.php index a41689c1c..bb7783466 100644 --- a/app/Models/Node.php +++ b/app/Models/Node.php @@ -2,6 +2,7 @@ namespace Pterodactyl\Models; +use Illuminate\Support\Str; use Symfony\Component\Yaml\Yaml; use Illuminate\Container\Container; use Illuminate\Notifications\Notifiable; @@ -155,8 +156,8 @@ class Node extends Model 'port' => $this->daemonListen, 'ssl' => [ 'enabled' => (!$this->behind_proxy && $this->scheme === 'https'), - 'cert' => '/etc/letsencrypt/live/' . $this->fqdn . '/fullchain.pem', - 'key' => '/etc/letsencrypt/live/' . $this->fqdn . '/privkey.pem', + 'cert' => '/etc/letsencrypt/live/' . Str::lower($this->fqdn) . '/fullchain.pem', + 'key' => '/etc/letsencrypt/live/' . Str::lower($this->fqdn) . '/privkey.pem', ], 'upload_limit' => $this->upload_size, ],