public function isUpdatingOverHttps() { $openSslEnabled = extension_loaded('openssl'); $usingMethodSupportingHttps = Http::getTransportMethod() !== 'socket'; return $openSslEnabled && $usingMethodSupportingHttps; }