From dcc440c1f95c2fc2d85d923434e84f2ce5704d22 Mon Sep 17 00:00:00 2001 From: Hanada Date: Mon, 12 May 2025 00:02:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=9D=E6=AC=A1=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E8=AF=81=E4=B9=A6=E5=88=B0ACM=E7=9A=84=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/lib/deploy/aws.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/lib/deploy/aws.php b/app/lib/deploy/aws.php index a92220c..73b0ccc 100644 --- a/app/lib/deploy/aws.php +++ b/app/lib/deploy/aws.php @@ -34,7 +34,8 @@ class aws implements DeployInterface $certInfo = openssl_x509_parse($fullchain, true); if (!$certInfo) throw new Exception('证书解析失败'); - $cert_id = $this->get_cert_id($fullchain, $privatekey, $info['cert_id']); + $cert_id = isset($info['cert_id']) ? $info['cert_id'] : null; + $cert_id = $this->get_cert_id($fullchain, $privatekey, $cert_id, $config['cert_name']); usleep(500000); $client = new AWSClient($this->AccessKeyId, $this->SecretAccessKey, 'cloudfront.amazonaws.com', 'cloudfront', '2020-05-31', 'us-east-1', $this->proxy);