public function getStreamContext() { if (!$this->context) { $this->context = stream_context_create(array('ssl' => array('capture_peer_cert' => true, 'verify_peer' => true, 'allow_self_signed' => false, 'cafile' => $this->getRootCaBundlePath(), 'CN_match' => 'mxr.mozilla.org'))); } return $this->context; }