From 0e5cf021451cbc590b4904d145135576b55b1a8c Mon Sep 17 00:00:00 2001 From: Greg Anderson Date: Wed, 14 Sep 2022 14:11:29 -0700 Subject: [PATCH] Turn off ssl verify for EA --- README.md | 2 +- src/SecretsApi/SecretsApi.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a61b4ab..8d2e7b9 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A plugin to handle Secrets via Terminus. -NOTE: This is still a WORK IN PROGRESS, this plugin is NOT FUNCTIONAL yet. +NOTE: This is still a WORK IN PROGRESS; it is not guaranteed to be error-free. ## Configuration diff --git a/src/SecretsApi/SecretsApi.php b/src/SecretsApi/SecretsApi.php index cf44527..6f741ac 100644 --- a/src/SecretsApi/SecretsApi.php +++ b/src/SecretsApi/SecretsApi.php @@ -72,6 +72,7 @@ public function listSecrets(string $site_id, bool $debug = false): array 'Authorization' => $this->request()->session()->get('session'), ], 'debug' => $debug, + 'verify' => false, // @todo Remove post-EA, once service is using trusted cert ]; $result = $this->request()->request($url, $options); $data = $result->getData(); @@ -146,6 +147,7 @@ public function setSecret( 'json' => $body, 'method' => 'POST', 'debug' => $debug, + 'verify' => false, // @todo Remove post-EA, once service is using trusted cert ]; $result = $this->request()->request($url, $options); return !$result->isError(); @@ -188,6 +190,7 @@ public function deleteSecret(string $site_id, string $name, bool $debug = false) ], 'method' => 'DELETE', 'debug' => $debug, + 'verify' => false, // @todo Remove post-EA, once service is using trusted cert ]; $result = $this->request()->request($url, $options); return !$result->isError();