where('id','=',$this->request->param('id'))->or_where('name','=',$this->request->param('id'))->find(); if (! $so->loaded() OR ! $so->cert) throw HTTP_Exception::factory(404,'SSL either doesnt exist'); $this->auto_render = FALSE; $this->response->headers('Content-Type','plain/text'); $this->response->headers('Content-Disposition','attachment; filename="'.$so->name.'.crt"'); $this->response->body($so->cert); } } ?>