Disable ssl verification when resolving server endpoints

This commit is contained in:
Marcel Pociot
2021-06-23 15:34:14 +02:00
parent 48c759a7d9
commit 5a1f3ab2ff
3 changed files with 7 additions and 3 deletions

View File

@@ -89,7 +89,9 @@ abstract class ServerAwareCommand extends Command
protected function lookupRemoteServers()
{
try {
return Http::get(config('expose.server_endpoint', static::DEFAULT_SERVER_ENDPOINT))->json();
return Http::withOptions([
'verify' => false,
])->get(config('expose.server_endpoint', static::DEFAULT_SERVER_ENDPOINT))->json();
} catch (\Throwable $e) {
return [];
}

View File

@@ -33,7 +33,9 @@ class ServerListCommand extends Command
protected function lookupRemoteServers()
{
try {
return Http::get(config('expose.server_endpoint', static::DEFAULT_SERVER_ENDPOINT))->json();
return Http::withOptions([
'verify' => false,
])->get(config('expose.server_endpoint', static::DEFAULT_SERVER_ENDPOINT))->json();
} catch (\Throwable $e) {
return [];
}